Lion Cipher Lab

Assess a MySQL server for weak accounts and remote exposure, then fix it

Why it matters

A database holds the data everything else protects, and one of the most common findings in real assessments is a database listening on the network with a default or empty administrator password. Two separate problems hide inside that sentence: who can reach it, and who is allowed in. A good assessor tests both, and a good fix closes both, because closing one still leaves the other for the next change to undo.

What you'll learn

Steps in this lab

  1. The rule, and the two things you are testing
  2. Find it and read its identity
  3. Check the accounts: the Nmap script, then the client
  4. Build your own weak database on loopback, to practise safely
  5. Rate what you found
  6. Fix the container: a real password and a least-privilege user
  7. Fix Metasploitable 2: take a snapshot, then close both problems
  8. Re-test from the network, with the same commands
  9. The defender's view

Open the full interactive lab →

Keep learning