Skip to content
Info disclosure Write-up Intermediate

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.

c0d3x27 Follow

Published on infosecwriteups.com

A t the beginning of this pandemic, not everyone was expecting the kind of outcome it had. Too many people lost their jobs.

c0d3x27, on infosecwriteups.com

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

  1. Inspect the website and find an unmaintained WordPress login panel.
  2. Use the Advanced Access Manager flaw to download wp-config.php.
  3. Post HTML/JavaScript into the comment field to trigger a popup.
  4. Decompile the Android APK to extract a Google Maps API key from string.xml.
  5. Send a POST request to xmlrpc.php to list available methods.
  6. 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.

More by c0d3x27

View all

9 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.