Web Hacking
◾
345
Obviously, the first step would be to inject a single quote and cause the application to throw
an error.
Syntax
http://localhost/index.php?support=yes’
After
injecting a single quote, we can see that the application responds with an SQL error,
which indicates that something might have broken our SQL query. This indicates that the applica-
tion might be vulnerable to SQL injection. We will append another
single quote to the URL and
see if we are still receiving the same error.
Syntax
http://localhost/index.php?support=yes”
We see no error message, which means that the application is most
probably vulnerable to SQL
injection, because we have now defined the correct syntax.
Dostları ilə paylaş: