I am junior in sql and all the sql injection and i have some questions.
I have a website, its wrote in ASP.net c#.
Lets say i have HTML Editor and i get the HTML from the client and save it to the db. Now lets say someone try to do sql injection to me, what code he need to put in the HTML to create the sql injection (if its can be...not sure..)?
if he put an sql injection code to my db, and its in the db, i mean he save the html with the sql injection statement, when the code is load in the HTML EDITOR, its can do the sql statement?
- when i say select statement i mean somthing like: select top 10 * from configoration where accountid=10
please advice me, i am a junior so be nice =]
SQL injection will only happens when you try to query the database. If you are retrieving a file with sql injection code and nowhere in your query is user input, then you are fine. The only time you have to check for SQL Injection is when you query using the user's input ex. username, password, from textboxes, etc.