HackThisSite - Realistic Mission 9
Challenge
Pay employee r-conner and remove the evidence from
CrappySoft's logs.
Solution
1. Log in as the employee
The challenge provides:
1 | Username: r-conner@crappysoft.com |
The login response sets the employee cookies. The employee page exposes a Private Message link and Pay Salaries link, but the latter requires administrator privileges.
2. Use the simulated XSS step
Send a JavaScript payload to m-crap through Private
Messages. The challenge explicitly supplies the simulated administrator
cookie afterward:
1 | strUsername=m-crap%40crappysoft.com |
Replace the three challenge cookies with these values. Then open
payday.php and submit the Pay form. The server displayed
the employee's thank-you message and marked the payment transaction
complete.
3. Clear the logs
The mailing-list form contains:
1 | <input |
The log is publicly listed at ./files/logs/logs.txt.
Submit the mailing form with the hidden path changed to:
1 | ./files/logs/logs.txt |
Use an address without @ so the cleanup logic removes
it.