Lion Cipher Lab

Exploit an unauthenticated MongoDB in your own lab

Why it matters

Exposed, unauthenticated databases are one of the most common serious findings on the entire internet, and MongoDB is the case that taught a whole industry the lesson the hard way. MongoDB is a DOCUMENT DATABASE: instead of tables and rows it stores JSON-like documents grouped into collections, and it became enormously popular because that model maps neatly onto the objects a web app already works with. For years its default configuration was a trap waiting to spring — early versions bound to every network interface out of the box, and to this day the server ships with NO authentication…

What you'll learn

Steps in this lab

  1. What MongoDB is, and what 'no access control' actually means here
  2. Build the isolated lab: two containers, one private network, your machine only
  3. Confirm unauthenticated access — the finding, from the attacker container
  4. The real-world scenario: the MongoDB ransom wave, in miniature
  5. Why the default is safe — and why exposed MongoDB still happens anyway
  6. The fix, part 1: enable access control and create scoped users (RBAC)
  7. The fix, part 2: measure it, then defence in depth (bind, TLS, firewall)
  8. Do it better — how to recognise, report, and prevent the exposed database

Open the full interactive lab →