October 2018
Intermediate to advanced
528 pages
12h 33m
English
Now that we understand the basics of SQL queries, let's use this to our advantage. Working with DVWA for this again, log in to DVWA and go to SQL Injection:

We can see that this page has a field for the user to enter the User ID of someone. If we enter 1 here, the application should tell us which user has User ID 1.
Let's do a simple test for SQL Injection. In the User ID field, instead of entering a number, enter the following:
%’ or ‘1’=’1:

Let's assume that the initial query looks like this:
SELECT user_id, first_name, ...
Read now
Unlock full access