Challenges › Web

Ticket Note

medium · 40 XP · machine with a lab · free · solves: 0

A test agent's browser opens the ticket queue every couple of seconds. The agent page (/agent/queue, agents only) holds a JavaScript variable AGENT_PIN and shows each note as HTML, so any <script> in a note runs there. As the customer, post a note to ticket 5 whose script sends AGENT_PIN to /collect?pin=..., then read it back at /collected (lessons 13 and 14).

Browse the target: start the lab, then click Open target ↗ at the top right of the Attack box panel. It opens the app in a new tab at its own HTTPS address. Use your browser and its DevTools there.

Attack box: a Linux shell with curl, jq and Python. It reaches the same app at the address shown in the lab panel (for example 198.18.0.3:8080). Answer each question below.

Try next