SQL injection attack on ASP registration form pages?
问题 I need to know the process of the SQL injection attack on registration form made by ASP or ASP.Net? 回答1: 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 回答2: See How to avoid SQL