Skip to content
Info disclosure Write-up Beginner

How I Discovered a WordPress Vulnerability: Exposed Usernames & X

The WordPress REST API exposed valid usernames through its users endpoint, and XML-RPC was enabled, allowing multiple password guesses in a single request. An attacker could use the discovered username to brute force the login and gain unauthorised access if a weak password was cracked.

Shafayat Ahmed Alif Follow

Published on medium.com

WordPress is one of the most widely used content management systems (CMS) worldwide. However, some of its features can introduce security risks.

Shafayat Ahmed Alif, on medium.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

Root cause

Likely the default WordPress configuration exposes user slugs via the REST API and leaves XML-RPC enabled, which together make password guessing easier.

Impact

If a weak password is cracked, an attacker could log in and potentially take over the site, steal data, or inject malware; the text does not confirm that a password was actually cracked.

What the attacker needed

WordPress site with default REST API; XML-RPC enabled; A password wordlist

The fix

The text recommends restricting the users REST endpoint, disabling XML-RPC, enforcing strong passwords and 2FA, using security plugins, and limiting login attempts; it does not state that these were applied.

How it was found

  1. Visit the WordPress REST API users endpoint in a browser.
  2. Review the JSON response to find a valid username in the slug field.
  3. Run WPScan to check whether XML-RPC is enabled.
  4. Use WPScan with the discovered username and a password list to brute force via XML-RPC.
  5. Observe whether WPScan returns the correct password.

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.

WordPress is a popular website-building tool. Its REST API is a way for other programs to ask the site for information, and here it gave out real usernames. Separately, a feature called XML-RPC lets a program try many passwords at once, so an attacker who knows a username can guess passwords faster.

What is Info disclosure?

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

More by Shafayat Ahmed Alif

View all

1 more disclosed report, 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.