Lion Cipher Lab

Access an unauthenticated VNC server in your own lab, then lock it down

Why it matters

Most exposed-service findings are about data: an open database leaks records, an open file share leaks files. An exposed VNC server is a different and often worse category, because VNC is REMOTE DESKTOP — it hands a remote person your actual screen, mouse and keyboard. A VNC server that accepts connections with no authentication is therefore not 'someone can read your data', it is 'someone can sit at your computer', click through whatever is logged in, open a terminal, read email, move money. VNC speaks a protocol called RFB (Remote FrameBuffer), and the very first thing an RFB server does…

What you'll learn

Steps in this lab

  1. What VNC is, and why 'unauthenticated' here means something worse than usual
  2. Build the self-contained lab: one container, loopback only
  3. Start the weak server: offer security type None
  4. Confirm the finding: read the offered security types with nmap
  5. Optional: read the handshake yourself with a tiny probe
  6. Apply the fix, layer 1: require VNC Authentication
  7. Apply the fix, layer 2: keep it on loopback and tunnel over SSH
  8. When this bites, when it does not, and how a pro treats VNC

Open the full interactive lab →