# Wordpress Takeover using setup configuration at http://████.edu [HtUS]

Exposed WordPress setup-config.php let an attacker point install at their own remote MySQL server, complete setup, and gain admin access to the site.

- Payout: $1,000
- Severity: critical
- Program: U.S. Dept Of Defense
- Found by: ghostkernalbbt
- Disclosed: 2023-01-13
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1626205
- Library page: https://bugbountylibrary.com/r/h1%3A1626205
- Tags: area:web domain:web impact:ato impact:rce kind:bounty platform:hackerone sev:critical tech:php tech:wordpress technique:legacy-endpoint vuln:access-control vuln:auth-bypass vuln:misconfiguration

**Target:** WordPress installation endpoint (wp-admin/setup-config.php)
**Root cause:** The WordPress installer setup-config.php was left reachable on an already-deployed site, allowing an unauthenticated user to run installation against an attacker-controlled remote MySQL database and create a new admin account.
**Steps:**
1. Locate exposed installer: `http://target.edu/old/wp-admin/setup-config.php`
2. Provision a remote MySQL DB at freemysqlhosting.net
3. Submit attacker DB host/user/pass to the setup-config.php wizard
4. Complete installation, setting attacker-chosen admin username/password
5. Log in at `http://target.edu/old/wp-login.php` with the created admin creds
**How found:** Spotted the leftover `/old/wp-admin/setup-config.php` installer path on the target and recognized the remote-DB install trick.
**Exploitation:** Attacker hosts their own MySQL server, feeds those credentials into the live setup-config.php wizard, finishes the WordPress install, and thereby creates an administrator account on the target, yielding full admin panel access and potential RCE via theme/plugin upload.
**Escalation:** Admin access enables uploading a webshell/plugin for remote code execution and total system compromise.
**Insight:** Old/backup WordPress directories often retain setup-config.php; if the installer is reachable it will happily install against an attacker-hosted remote MySQL, minting a fresh admin account without any existing credentials.

