Leaking usernames through endpoints Wordpress
The WordPress REST API endpoint for users was publicly accessible, allowing anyone to retrieve user information by requesting specific user IDs. An attacker could enumerate usernames and other details of active users.
Originally disclosed on HackerOne
- Triaged in 48 hours
- Fixed in 60 days
- Disclosed after 20 months
Summary:
Hi first, some of my usernames have been leaked by endpoints https://alt.mtn.com/wp-json/wp/v2/users
Steps To Reproduce:
[The steps are as follows]
- Open the subdomain https://alt.mtn.com
- Add the path https://alt.mtn.com/wp-json/wp/v2/users/192
- [You will notice the user information and you can also reveal many user names by changing it id user As in the pictures ]


Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)]
#1735586 #356047
Impact
by API The attacker can find many information and names of active users
Not written yet. The AI write-up for this report 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 and publicly accessible without authentication or restriction.
Impact
An attacker could enumerate usernames and gather information about active users via the API.
What the attacker needed
None
How it was found
- Open the subdomain alt.mtn.com.
- Add the path /wp-json/wp/v2/users/192 to the URL.
- Observe the user information returned, and change the ID to reveal more usernames.
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 report has not been written yet. The Original tab links to the source.
WordPress has a feature that lets other programs ask for a list of users. If that feature is left on, anyone can ask for user details by guessing numbers. This report shows that the site allowed such requests, exposing usernames.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.