Booking Portal Breach
Web application and database lab · Hard · Chapter 14 · 9 challenges · 2200 points
The case
Saltmarsh Ferries noticed refunds for cancelled December sailings going to one unfamiliar bank account. The booking site runs PHP and MySQL on a single server, and its operations team preserved the web logs, the uploads folder and the MySQL binary log.
Work out how the attacker got in, what they ran on the server, and exactly which database changes they made, so the company can reverse them and notify the right customers.
How to play
- Start with
cat CASE-NOTES.txt. Typechallengesfor the full list, or read the board. - Each challenge asks for a value you can prove from the evidence. Enter
submit ID ANSWER. - The evidence is mounted read-only. Use
ls,cat,grep, pipes and the case tools listed byhelp. - Stuck?
hint IDgives a nudge at no cost.
The terminal works like bash: Tab completes commands and paths (press it twice to list matches), ↑ and ↓ recall history, Ctrl+R searches it, Ctrl+C cancels the line and Ctrl+L clears the screen. Press Esc then Tab to move focus out of the terminal.
Challenges can be done in any order. Your progress is saved in this browser, and reset --confirm starts over.
Challenge board
Web requests 0/4
Chapter 14 · Request tracing and web attacks
-
An automated visitor
One client identified itself as an SQL injection tool. Submit its IP address.
Answer: An IPv4 address
-
Name the tool
Submit the name of the tool in that user agent.
Answer: A tool name
-
The injectable parameter
Which query-string parameter did the injection target?
Answer: A parameter name
-
What the UNION read
Decode the last injection request. Which table did it read usernames and password hashes from?
Answer: A table name
Web shell 0/3
Chapter 14 · Web attack evidence
-
A picture that runs
Submit the file name of the web shell uploaded through the admin media page.
Answer: A file name
-
Commands through the shell
Submit the first command the attacker ran through the web shell.
Answer: A shell command
-
Taken away
The attacker packed a folder into an archive in uploads and downloaded it. Which folder did the archive contain?
Answer: An absolute path
Database changes 0/2
Chapter 14 · Database forensics
-
Refunds redirected
How many bookings had their refund IBAN changed to the attacker’s account?
Answer: A number
-
Shell to database
How many seconds passed between the first web-shell command and the first refund-account UPDATE? Use UTC for both.
Answer: A number of seconds