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.
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.
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
- Visit the WordPress REST API users endpoint in a browser.
- Review the JSON response to find a valid username in the slug field.
- Run WPScan to check whether XML-RPC is enabled.
- Use WPScan with the discovered username and a password list to brute force via XML-RPC.
- 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.