Protecting Camp
Challenge Description
I made a small site to keep a list of things I need to buy to keep me safe before I go camping, maybe it's keeping some other things safe too!
Attachments
Solution
Going through the code, it looks vulnerable to
SSRF
(Server Side Request Forgery)In the
index.js
file
We can see theres a
/api/flag
endpoint that reads theflag.txt
fileSending a request to
/api/flag
will returnHey... what's going on here
In the
index.js
we see that the server is looking for request coming from127.0.0.1
which is the localhost
FLAG
Last updated