old-02 -- SQLi (Blind via Cookie)

URL: https://webhacking.kr/challenge/web-02/arrow-up-right

old-02.png
<!--
2024-08-03 05:27:33
-->
<h2>Restricted area</h2>Hello stranger. Your IP is logging...<!-- if you access admin.php i will kick your ass -->

Inspecting the requests, we get a new cookie called time.

old-02-1.png

/admin.php needs a password which we don't have:

It's odd to receive a useless cookie which specifies the datetime in html as comment, we are able to control the cookie:

old-02-2.png

Somehow SQLi is possible?..

Brute force the database:

Note: Script is plug and play style, and not fully automatic 🥴

Note: For some reason server didn't like Asnyc code so this MF took ages to brute.

Note: Don't use LIKE operator on column values as it's not case sensitive.

Submit the password at /admin.php

old-02-3.png

Last updated