HackThisSite - Realistic Mission 8
Challenge
Move Gary Hunter's $10,000,000 to dropCash
and clear the bank logs.
Solution
1. Find the account
The User Info search endpoint is vulnerable to SQL injection. From the current search form, submit:
1 | ' OR 1=1 -- |
The result includes the target account:
1 | GaryWilliamHunter : -- $$$$$ -- |
2. Register and inspect the authenticated workflow
Register a temporary account, then log in through
login1.php → login2.php. The account page
exposes two important client-controlled values:
accountUsernamecookie- hidden
TOandAMOUNTfields in the transfer form
The target amount is 10000000.
3. Tamper with the cookie and transfer
Set the challenge cookie identity to Gary's account, then submit the transfer form:
1 | Cookie: accountUsername=GaryWilliamHunter |
The server returned:
1 | Congratulations, 1st Objective Done, Now Cover Your Tracks |
4. Clear the logs
The normal clear-files form targets
<username>SQLFiles. Change its hidden
dir value to logFiles and submit:
1 | POST /missions/realistic/8/cleardir.php |
The challenge then displayed:
1 | Congrats |