️ Sensitive Data Exposure via WP-JSON in WordPress
The WordPress REST API users endpoint is publicly reachable and returns registered authors' usernames, user IDs, display names and profile links. An attacker could use this list to enumerate valid login names and then attempt brute force or targeted phishing.
Published on medium.com
The WordPress REST API exposes certain user information through public endpoints. Specifically, the endpoint:
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 leaves the users REST endpoint open to unauthenticated visitors, so it discloses author account details.
Impact
Exposed usernames could enable enumeration, brute force password guessing and targeted phishing against the listed accounts.
What the attacker needed
No account needed; network access to the site
The fix
The endpoint should be restricted for unauthenticated users, for example by removing the users route through a filter or a plugin, and author archives should be hidden.
How it was found
- Request the users endpoint of the target site, either in a browser or with a command-line tool.
- Read the JSON array in the response, which lists each user's ID, name, slug and profile link.
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 has a built-in web interface (the REST API) that other software uses to read site data. One of its addresses lists the site's authors, and by default anyone can read it without logging in. Knowing real usernames makes guessing passwords or writing convincing fake emails easier, because the attacker no longer has to guess who exists.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.