I need to know the process of the SQL injection attack on registration form made by asp or asp.net ? this is a crucial question to me. thank you
A:
Always validate the SQL query, remove any unwanted characters and use SQL Parameters to avoid SQL Injection.
James
2009-07-15 13:21:03
+4
A:
here is a simple example:
screen input:
enter your name: Bill'); delete from users --
build query
insert into users (name) values ('''+@Name+''')'
actual query:
insert into users (name) values ('Bill'); delete from users --')
what happens: all your users get deleted
FYI, not sure of the database you're using, but @Name is a variable, and "--" is a comment
KM
2009-07-15 13:21:17
+1 nice pseudocode
Mercer Traieste
2009-07-15 13:50:31