Dog Walkthrough
Summary
The Dog box is an easy-rated HTB challenge focusing on a CMS exploit and privilege escalation through a PHP-based binary.
Walkthrough
- Nmap: Service and version scanning.
- GoBuster: Directory and file enumeration.
- robots.txt: Found interesting entries.
- git-dumper: Dumped the
.gitrepository. - Identify Email: Found an organization email.
- Analyze Dump: Found the matching mail in the git dump.
- Extract Password: Found the password in the configuration file.
- Login: Authenticated to the admin panel.
- Vulnerability Research: Search version of Backdrop CMS for exploits.
- Exploitation: Modules can be exploited from the admin page.
- Reverse Shell: List
/etc/passwdor use a reverse shell script. - Exploration: Noticed limited access initially.
- Password Spraying: Attempted password spraying on local users.
- User Access: Logged in as
jonhcusack. FLAG - Privilege Escalation: Ran
sudo -l. - Binary Analysis: Found the
beebinary, which must be run from the Backdrop directory. - Root Shell: Ran in
/var/www/htmlwith a PHP script command:system("/bin/bash"). - Victory: Gained ROOT access.
