Home Learn Practice Pricing Host a CTF Community Blogs
Sign Up
DrupalGate
Web Easy 100 pts

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
1
Service Enumeration
Begin by identifying exposed services and deciding which service gives the best attack surface. Boot2root machines usually reward careful enumeration before exploitation.
Q1. Which CMS is powering the web application? +10 pts
Check the page source and footer text.
Q2. Which file reveals the Drupal version? +10 pts
Old Drupal installations commonly expose this file in the web root.
Q3. Which Drupal version is shown by the changelog? +10 pts
Read the first version entry in CHANGELOG.txt.
Q4. Which host port exposes the web application?
Run a version scan against the exposed ports.
2
Drupal Foothold
The exposed Drupal 7-style target is vulnerable to a Drupalgeddon2-style request flow. Exploit the vulnerable form handling behavior to gain command execution as the web server user.
Q1. Which Linux user does the web exploit execute as? +10 pts
Run id after exploiting the web target.
Q2. Submit the user flag. flag +20 pts
After getting a shell, inspect home directories.
Q3. Which vulnerability family provides the initial foothold? +10 pts
The Drupal 7 version and password reset form are the main clues.
3
Privilege Escalation
Once inside the machine, enumerate local privilege escalation paths. SUID binaries run with the effective permissions of their owner and are a common beginner Linux privesc vector when dangerous utilities are misconfigured.
Q1. Which SUID binary is intentionally misconfigured? +10 pts
Search for files with the SUID bit set.
Q2. Which find option is abused to execute a command? +10 pts
find can run a command for each matching file.
Q3. Which bash option preserves effective privileges? +10 pts
Without this option, bash may drop elevated effective privileges.
Submit Flag
Submit the root flag found in /root