How I Found a WordPress Database Setup via Shodan (HackerOne)
An IP address belonging to the target organisation exposed a WordPress installation that had not yet been configured, showing the database setup page. An attacker could potentially complete the setup and take over the site.
medium.com
Published on medium.com
I was in college when I saw on bbradar.io that a new bug bounty program had launched on HackerOne. I visited the program page and opened the Scope section, where I noticed many wildcards were available for testing.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the WordPress installation was left in an unfinished state, with the setup script accessible to anyone.
Impact
An attacker could potentially complete the WordPress database setup and take control of the site, though the report was closed as a duplicate.
What the attacker needed
Internet access to Shodan; Knowledge of the target organisation name
How it was found
- Search Shodan using the organisation name and filters such as title, port and status.
- Find an IP that appears to belong to the target but has a different favicon.
- Open the IP in a browser and observe it redirect to the WordPress setup-config page.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you install WordPress, it asks you to set up a database by visiting a special web page. If that page is left open to the internet, anyone can finish the setup and control the site. Here, a server belonging to the company was found with that page still open.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.