Dc 1.md
IP: 192.168.118.X
OS: Debian
Difficulty: Easy
Source: VulnHub
Nmap
Open ports:
- 22 SSH
- 80 HTTP (Drupal 7)
- 111 rpcbind
Foothold
Vulnerability: Drupalgeddon 2 (CVE-2018-7600)
Exploit: exploit/unix/webapp/drupal_drupageddon in Metasploit
Dropped a meterpreter shell as www-data.
Flags
Found 5 flags, chained hints to progress:
- flag1 — hint about config files
- flag2 — DB credentials in settings.php
- flag3 — SQL dump of users table
- flag4 — SSH as flag4 user
- flag5 (thefinalflag) — sudo find exploit for root
Privilege Escalation
Vector: sudo find
Technique:
sudo find / -exec /bin/sh \;
Root shell obtained via GTFOBins find.
Techniques Used
- [[Drupalgeddon]]
- [[Linux-Sudo]]
Lessons Learned
- Always check
sudo -lfor GTFOBins candidates. - Drupal versions are easy wins — check with droopescan or searchsploit.