OWASP Security Shepherd Project - SQL Injection 1 (Injection Challenge)
Challenge
Solution
It looks like the SQL Query should looks like SELECT * FROM <table_name> WHERE CustomerId = '<Our Input>'.With this guess, let's try to input a'or'1' = '1.
No luck. However, we should know that both ' and " are valid characters for strings.
That's try a"or"1" = "1.
Great! We completed the challenge.
留言
張貼留言
Welcome to share your comments or questions : -)
Enjoy life!