I had developed a website (in asp.net), and it has a registration page(not signup, but it receives people details), that is actually an educational organisation's site, and the registration form is meant for people who want to register for workshops organised by the organisation.
Now coming to the point, I was checking the database's registration table (Database is in MS Access), and found multiple rows having data like:
//In Residential Address field
[url=http://paydayloansonline25.com]payday loans online[/url] pay loans direct student loans [url=http://paydayloansonline25.com]get loan online payday[/url] cash fast without bank account http://paydayloansonline25.com small business loans fast cash
//In Field to store workshop id, for which the person want to register for, the data was
document.getElementById(varIDCtrlName).value;
I am sure it was a possible SQL Injection attack, but not sure, what the hacker would have tried to do, and if he was successful - then what he would have collected. Please also mention, how do I handle it.
For more information:
I have not added the parameters like
EnableEventValidation="false" ValidateRequest="false"
In the page directive of aspx page, to which I guess was true
by default, and while it is true
, helps this type of possible attacks.
And another thing worth mentioning, is that my OleDbCommand
's parameters are written like
cmd.Parameters.AddWithValue("@ResiAddress", strResiAddress);