I Hacked An Important State Owned Agency And Got Paid For It
The website of a state agency ran an outdated WordPress installation with several flaws, including a plugin that let anyone download the configuration file and an XML-RPC endpoint that could be abused. An attacker could read database credentials, inject HTML/JavaScript, and brute-force logins.
A t the beginning of this pandemic, not everyone was expecting the kind of outcome it had. Too many people lost their jobs.
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
Impact
An attacker could read the database credentials, inject scripts to steal sessions, and brute-force WordPress logins; the XML-RPC endpoint also allowed port scanning of internal services.
What the attacker needed
No account needed; victim visits a page with injected HTML; access to the public website
How it was found
- Inspect the website and find an unmaintained WordPress login panel.
- Use the Advanced Access Manager flaw to download wp-config.php.
- Post HTML/JavaScript into the comment field to trigger a popup.
- Decompile the Android APK to extract a Google Maps API key from string.xml.
- Send a POST request to xmlrpc.php to list available methods.
- Use the pingback.ping method with a callback URL to perform port scanning.
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.
A WordPress plugin had a bug that let anyone download a sensitive file called wp-config.php, which holds the database password. The site also allowed HTML injection in comments and exposed an XML-RPC interface that could be used to guess passwords. Together these mistakes could let an attacker take over the site or steal user data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.