- Use Burp Suite to intercept and modify a request that fetches a product image.
-
Modify the
filenameparameter, giving it the value:/var/www/images/../../../etc/passwd -
Observe that the response contains the contents of the
/etc/passwdfile.
Lab: File path traversal, validation of start of path
This lab contains a path traversal vulnerability in the display of product images.
The application transmits the full file path via a request parameter, and validates that the supplied path starts with the expected folder.
To solve the lab, retrieve the contents of the /etc/passwd file.