Hands-On Application Penetration Testing with Burp Suite
by Carlos A. Lozano, Dhruv Shah, Riyaz Ahemed Walikar
The exploitation
Imagine this database just has 10 registers, so if a user passes a number 1 as value to the $id variable, the application returns the first register. When the user enters the number 10, the application returns the last register. However, when the user enters the value 11, the application does not have a register to show, but it does not show any error explaining to the user that it is not showing anything because it has nothing more to show. The output just doesn't do anything.
As the application is not validating the value entered into the $id variable, a user can enter any kind of information. For example, a '1 or 1=1-- string, which is a common string used to detect SQL injection flaws. However, as we said, the application ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access