Web server logsHackBlue

A search box that returned the users table

The shop’s search API logged a run of quotes, ORDER BY probes, and UNION SELECTs. Identify the parameter, the table that was dumped, and the size of the response that leaked it.

  • Terminal mission
  • Intermediate
  • 4 questions
  • 0 of 4 solved

Your goal

Your goalShow which search parameter let an attacker dump a database table, and how much came back.

The search API on shop-api-02 normally returns a couple of kilobytes. One response this morning was close to 190 KB.

SQL injection leaves a recognizable trail: a single quote that causes a 500, ORDER BY to count columns, then UNION SELECT to read other tables. The payload is URL-encoded, so a space appears as %20 and a quote as %27.

What’s on screen
Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.
Words to know
API
application programming interface, how programs talk to a service
KB
kilobyte
SQL
Structured Query Language, how programs ask a database for data
URL
web address

analyst@shop-api-02

shop-api-02 · Web server logs

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.