DrupalGate
DrupalGate is an easy Docker-based boot2root CTF machine built around a realistic Drupal 7-style public-sector website. The lab is designed for beginner security learners who are practicing ethical web exploitation, Linux enumeration, and basic privilege escalation in an isolated environment.
Players begin with normal service enumeration and discover HTTP, SSH, and an RPC-style service. The website looks like a real Drupal 7 deployment, including Drupal metadata, a login block, password reset page, public content, and a CHANGELOG.txt file that reveals a vulnerable Drupal 7 version. The intended foothold is a Drupalgeddon2-style unauthenticated command execution path that returns a low-privilege shell as www-data.
After gaining a shell, players enumerate the Linux host, find the first user flag, search for SUID binaries, and discover that /usr/bin/find has been intentionally misconfigured with the SUID bit. Using find's -exec behavior with bash -p gives effective root privileges and allows the player to read the final flag.
Skills covered:
- Network service enumeration
- HTTP fingerprinting
- Drupal CMS identification
- Drupal version discovery through CHANGELOG.txt
- Drupalgeddon2-style remote command execution
- Reverse shell handling
- Linux local enumeration
- SUID binary discovery
- SUID find privilege escalation
- Root flag capture