Simple Web 0x14(Lab - Debug)
tags: NTUSTWS CTF Web
Challenge: http://h4ck3r.quest:9020/
Source code
1 | |
Analyze
/indexpage It has a blank that can type arbitrary URL and it’ll send to/proxyroute page to verify./proxypage It’ll addhttps://if the URL has no the string/debugpage If the request URL is not127.0.0.1then it’ll forbidden the request, otherwise, it’ll print the configuration with json type
hint: it has loaded the flag in app configuration already, so we just tried to use SSRF to access to /debug.
Exploit - SSRF
We need to bypass https:// constraint and add in our URL like below.
Payload: http://127.0.0.1:5000/debug?https://