A3:2021 | Path Transversal (2) | Cycubix Docs
PreviousA3: 2021 | Path Transversal (1) | Cycubix DocsNextA3:2021 | Path Transversal (3) | Cycubix Docs
Last updated
Last updated
In this assignment, the goal is to overwrite a specific file on the file system. Of course, WebGoat cares about the users so you need to upload your file to the following location outside the usual upload location.
Solution
Hint: Try updating the profile WebGoat will display the location. Look at the displayed location how is the file name on the server constructed?. Does the server validate any input given in the full name field?
Open the interceptor with Burp or Launch Zap with the Break.
Go to WebGoat, upload your file. Then go to Burp/ZAP and find the POST request.
Request on Zap
Request on Burp
Then add "../" in front of test under full name and see the answer.
With Zap
With Burp