Mission 01 · A01 Broken Access Control · ~20 min

Reading Records That Aren't Yours

in Attack to Defend

APIeasyweb
APIIn progress
0 / 550 pts

◎ Objective

Every document is fetched by a plain, sequential ID, and the server checks your token but never checks that the document is yours. Start from your own account, then walk the ID numbers outward: each one you request comes back, even when it belongs to a stranger. Sweeping the run also harvests a restricted record whose approval key is the break-glass credential for the vault. Reach the one sealed record no guest was ever meant to touch, re-present that approval key on the request, and it hands you the flag.

⌖ target
http://target:8080
⚿ access
You are the user "guest". Your token is guest-7f3a2b.
  1. exploit — you are here
  2. pivot — to do
  3. exfil — to do

▶ nowexploitRecon · read your own documentFlag

Mission briefing · the story behind the objective

Attack to Defend: the practice range

Welcome. This is the first mission of the Fundamentals track, and it is the gentlest: a deliberately vulnerable service, a terminal, and a flag to capture. No story to follow and nothing to install. You read records you shouldn't be able to, prove it with the flag, then lock the hole you walked through.

A terminal is attached on the right, inside an isolated box that can reach the target and nothing else. There is no internet in here, and the target is destroyed when you're done, so you can experiment freely.

The weakness

Locked. Name it in Spot it first, then the details unlock here.

Target: http://target:8080

Your mission

🎯 You are limited to your own documents on paper only. Walk the ID numbers outward from your own and harvest records that were never yours, until you reach the one sealed record that hands you the flag.

This is a three-stage operation:

  1. Recon · read your own document — Authenticate with your guest token and list the documents on your account. Notice how low and consecutive the ID numbers are. Then ask for the ID one below your own: it comes back, even though it isn't yours, carrying the first checkpoint.
  2. Breach · sweep the ID range — Stop reading one record at a time. Loop over the IDs around your own and pull each one; none check ownership, so you mass-harvest strangers' records. That sweep is the breach, and one of the restricted records in it carries an approval key — the second checkpoint.
  3. Capture · reach the sealed record — Keep going until one record comes back classified SECRET, owned by root@command. That is the record the whole system exists to protect, and its master override key is the flag.

Every stage ends in its own checkpoint flag (pwnd{...}). Submit each one in the panel as you reach it; the last completes the capture. Then close the hole in the Harden it step. Hints are there, but they cost points.

The defensive takeaway

This is exactly how First American Financial exposed roughly 885 million mortgage and title documents in 2019 — sequential document URLs, no login, no ownership check. Authenticating the caller is not the same as authorizing the request. On every lookup by ID, confirm the caller actually owns the object before returning it; never settle for proof that they're merely logged in. Hard-to-guess IDs are not a fix — the gap is the missing check, not the shape of the number.

Spot itSpot it

100 pts

You send a valid token with every request, yet the API hands back a record that belongs to someone else. What has the server failed to do?

Run the operationFlag

300 pts

Your own isolated target and attack terminal. No internet, auto-destroyed after 45 min.

  1. Recon · read your own documentexploitFlag90 pts
    Need a nudge?

    Send your guest token and ask the API for the documents on your account. Reading your own is allowed and expected, so this is just your starting point. Look closely at the ID numbers they carry: they are low and consecutive, which is the tell for this whole lab. If your records sit at those numbers, the records one step on either side belong to other people, and nothing is stopping you from asking for them. Request the document one ID below your own. It comes back, even though it is not yours, stamped with a higher classification than anything on your account, and the first checkpoint rides in its body.

    Submit the checkpoint flag in the record one ID below your own:

  2. Breach · sweep the ID rangepivotLive capture90 pts

    Clear the previous stage to unlock this one.

  3. Capture · reach the sealed recordexfilFlag120 pts

    Clear the previous stage to unlock this one.

Harden itHarden it

150 pts

You get to add one fix. Which one truly shuts this down?

Stuck? Reveal hintscosts points