Hands-On Application Penetration Testing with Burp Suite
by Carlos A. Lozano, Dhruv Shah, Riyaz Ahemed Walikar
Manual detection
To detect command injection vulnerabilities, open Burp Suite and intercept the request where you think there is a potential vulnerability.
We think there is a vulnerability in the IP parameter. The normal application's flow is that the user inserts an IP address, and then the application executes a ping to this IP address. If we try to imagine what is happening in the backend, we can suppose that the IP parameter is received by a variable in PHP; then it is concatenated with the string ping to create a string that contains the command and the IP address.
Finally, this complete string is passed as a parameter to a function in charge to execute in a low-level command. So, if the IP parameter is not validated in a correct way ...
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