Sensitive Information Disclosure via WordPress REST API — Emails Exposed as Usernames
The WordPress REST API users endpoint was publicly accessible without authentication, and user display names and slugs were set to official email addresses. An attacker could retrieve the full user list and harvest real email addresses for phishing or credential stuffing.
Sensitive Information Disclosure via WordPress REST API — Emails Exposed as Usernames
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 site left the default public users endpoint enabled and also configured display names and slugs to be email addresses, so sensitive identifiers were exposed through a standard API response.
Impact
Attackers could use the verified email addresses for spear phishing and credential stuffing, and could map organisational structure by linking users to their published posts.
What the attacker needed
WordPress site with default REST API; Display names set to email addresses; No authentication required
The fix
The users endpoint should be disabled for unauthenticated requests, display names should never be email addresses, and the REST API should be restricted to authenticated sessions if not needed publicly.
How it was found
- Send an unauthenticated request to the WordPress REST API users endpoint.
- Observe that the response returns the full user list.
- Note that display names and slugs contain official email addresses.
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 address that lists the site's users, and by default anyone can read it without logging in. On this site, each user's public name was their email address, so that list handed out real email addresses. Attackers can use those addresses to send convincing fake emails or try known passwords.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.