Challenges › Web

Shared Cache

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

A cache sits in front of the account page and keeps a copy of each page by its path, ignoring the cookie, for 30 seconds. Load /account as Priya (cookie session=priya) so the cache stores her page, then load /account again with no cookie, within 30 seconds, and read her private wallet code from the cached copy. Also name the response header a correct origin sends to stop this (lesson 31).

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