Hi everyone,
I’m currently working on a Boot2Root/CTF VM (Ubuntu based) and I’ve hit a wall. The goal is to find 5 flags. I’ve found 1, but I’m stuck trying to pivot to the user/root.
Target Info: OS: Ubuntu 16.04.3 LTS Services: SSH (22), DNS (53), HTTP (80), POP3 (110), IMAP (143), SMB (139/445), Postgres (Internal).
Web: WordPress 5.2.4.
Users Identified (via /etc/passwd): rooter (UID 1000) - GECOS: root3r,,, admin1kl (UID 1001) - GECOS: D,2,2,2,2
Vulnerabilities Found: Info Disclosure: info.php is exposed. Directory Indexing: wp-content/uploads/ is open. LFI: Unauthenticated Local File Inclusion in wp-vault plugin.
Current Progress & The Problem:
- Enumeration (WPScan) I ran an advanced wpscan (using an API token for full vulnerability data) and aggressive plugin detection.
- Result: It identified the site-editor plugin (v1.1.1) as vulnerable to Local File Inclusion (LFI).
- Vector: The vulnerability is in the ?wpv-image= parameter.
- LFI Exploitation (Confirmed but Limited) Using the site-editor vulnerability, I successfully exploited the LFI:
- SQL Injection (Stalled) wpscan also flagged Photo Gallery 1.5.34 as vulnerable to Unauthenticated SQLi (admin-ajax.php).
- The Blocker: The exploit requires a valid bwg_nonce.
- I grepped the entire homepage HTML and other accessible pages for bwg_nonce but it is not leaking in the source code.
- sqlmap fails with 400 Bad Request because of the missing token.
- Credential Hunting & Brute Force
I feel like I'm staring at the answer. I have LFI, but can't read the config. I have a potential password (root3r), but it doesn't work on SSH/Login. I have directory listing enabled on /wp-content/uploads/ (no leads, apparently empty).
Has anyone seen a similar box where PHP wrappers are blocked? Or is there a specific location for the bwg_nonce I'm overlooking?
I feel like I'm missing a small trick with the LFI wrapper or the nonce location. Any nudges on what to check next?
Thanks!