Lion Cipher Lab

Exploit an exposed Memcached in your own lab, then lock it down

Why it matters

Memcached is one of the quietest, most widely deployed pieces of infrastructure on the internet: a simple, blazing-fast in-memory cache that sits in front of databases and web apps to remember the expensive-to-compute things — rendered pages, database query results, and very often session data and authentication tokens. It was designed, explicitly, to live on a trusted internal network and talk to trusted clients, so for its entire life it has had NO authentication in its default configuration and it listens, in the common deployment, on every network interface. On the developer's laptop, or…

What you'll learn

Steps in this lab

  1. What Memcached is, and what 'unauthenticated' actually means here
  2. Build the isolated lab: two containers, one private network, your machine only
  3. Confirm unauthenticated access — speak the protocol by hand
  4. Read the cache — and poison it — from an anonymous client
  5. The UDP amplification history — the big one, understood not weaponised
  6. The fix, and the measurement: bind, UDP, SASL, firewall, non-root
  7. Do it better — recognise, report, and prevent the exposed cache

Open the full interactive lab →