Why My 100% Proof Met a 0% Bounty: The WordPress REST API Trap
The WordPress REST API users endpoint was publicly accessible and returned a list of employee accounts, six of which were flagged as super administrators. An attacker could use the exposed usernames and privilege information for targeted password spraying, credential stuffing, and spear-phishing.
meetcyber.net
Published on meetcyber.net
Recently, while hunting on a major corporate Bug Bounty/Vulnerability Disclosure Program (VDP), I hit the classic WordPress REST API users endpoint. Usually, this is a low-hanging fruit trap — a known “intended feature” of WordPress core that platforms instantly close as N/A or Informative.
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 REST API users endpoint was left enabled without authentication and was modified to include a custom privilege flag in its response.
Impact
The exposed usernames and super admin flags could enable targeted password spraying, credential stuffing, and spear-phishing, potentially leading to account takeover.
What the attacker needed
None
The fix
The WordPress REST API users endpoint should be restricted to authenticated users or the custom privilege flag should be removed from the response.
How it was found
- Send an unauthenticated GET request to the WordPress REST API users endpoint.
- Observe that the response contains a list of user objects.
- Check the X-WP-Total header to confirm the total number of users.
- Note that six of the seven user objects include the is_super_admin flag set to true.
- Verify the endpoint is real by requesting a fake endpoint, which returns a 404 error.
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.
The WordPress REST API is a feature that lets other software talk to a WordPress site. By default, it can list all users without requiring a login. Here, that list also revealed which accounts had the highest level of control, giving attackers a clear target list.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.