Missing access control exposing detailed information on all users
The WordPress REST API plugin did not enforce access controls for the 'edit' context, allowing an unauthenticated attacker to retrieve sensitive details for every registered user. This exposed usernames, email addresses, names, registration dates, and privilege information, which could aid further attacks.
Originally disclosed on HackerOne
- Triaged in 13 days
- Fixed in 13 days
- Paid in 13 days
- Disclosed after 5 months
The WP REST API WordPress plugin fails to apply access controls for the 'edit' context. This means that with a single HTTP request, an attacker can obtain the following information for every single registered user: username, email address, first name, last name, date of registration, and detailed privilege information. This is a treasure trove of information for someone planning an attack - they know exactly which email addresses to target in order to gain admin privileges and complete control over the webserver.
To replicate this issue, simply send the following request while unauthenticated: GET /wp-json/wp/v2/users?context=edit
Please note that I've submitted this report to a couple of entities directly affected by this vulnerability so they can implement a workaround.
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
Impact
An unauthenticated attacker could obtain usernames, email addresses, names, registration dates, and privilege details for all users, which could be used to plan further attacks such as targeting admin email addresses.
What the attacker needed
None
How it was found
- Send an unauthenticated GET request to the users endpoint with the 'edit' context parameter.
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.
A WordPress plugin provides an API that lets programs fetch user data. Normally, only logged-in users with the right permissions should see private details like email addresses. Here, anyone could ask for the 'edit' version of the data and get it without logging in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.