Lion Cipher Lab

Exploit an exposed rsync daemon in your own lab, then restrict it

Why it matters

Almost everyone who has ever copied files between two machines has used rsync, and almost all of them have only ever used it the safe way — tunnelled inside SSH, where it inherits SSH's authentication and encryption and there is nothing to attack. What far fewer people know is that rsync has an entirely separate second personality: a standalone background service, the rsync DAEMON, that listens on its own TCP port (873 by default) and publishes named shares it calls 'modules'. That daemon was designed in an era of trusted networks, and for most of its life a module could be — and in countless…

What you'll learn

Steps in this lab

  1. Two different rsyncs: the safe one everyone uses, and the one this lab is about
  2. Build the self-contained lab: a throwaway directory and some bait files
  3. Write a deliberately weak daemon config — and see what makes it weak
  4. Start the weak daemon on loopback
  5. Enumerate the daemon the way an assessor would
  6. Confirm the READ finding: pull the files anonymously
  7. Confirm the WRITE finding — and why it is the dangerous half
  8. Write the fixed config — auth, read-only, chroot, host allow, low privilege
  9. Measure the fix: the same anonymous probes are now refused
  10. When this bites, when it does not, and how a pro avoids it entirely

Open the full interactive lab →