Talk:Testing for AJAX Vulnerabilities (OWASP-AJ-001)
I believe that publishing this SQL injection as a test method is extremely dangerous. While professional testers know not to drop tables from databases, inexperienced testers or malicious users could attempt this on sites with potentially disastrous effects.
SELECT id FROM users WHERE name='' AND pass=''; DROP TABLE users;
I would recommend using a more benign SQL injection example, such as:
SELECT id FROM users WHERE name=''or+1=1--' AND pass='';
This isn't the best example either as it may allow someone to log into a site, but it's better than dropping the users table. Then again, all SQL injection is dangerous.