Skip to content

atlas lab

Break it, fix it, prove it

Each exercise has three steps: exploit the flaw, apply the fix, then run the same attack again and watch it fail. It is a simulation on fake data that runs only in your browser.

Someone else's map

You are signed in as Acme Logistics (customer 1).

The story

Atlas customers fetch their maps with GET /v1/maps/:id. You are a customer, and your maps have ids 1 to 3. Other companies, including competitors, use the same API.

Your goal

Read a map that is not yours.

  1. Break it
  2. Fix it
  3. Prove it

Vulnerable code

router.get("/v1/maps/:id", requireApiKey, async (req, res) => {
const map = await db.maps.findById(req.params.id);
if (!map) return res.sendStatus(404);
res.json(map);
});
see it in the company →

Attack

Nothing leaves your computer. No real server is involved.

try these

Hint: Your maps are 1 to 3. Try 4.

Response

Send a request to see the response.