The “Bug” that is on 80% of WordPress sites but that pay only 1/2 times | Bug Bounty Story
The WordPress REST API user endpoint exposes usernames, sometimes real names and email addresses, to unauthenticated visitors. An attacker could use the leaked usernames to brute-force the admin login or use leaked emails for further investigation.
Published on medium.com
Bug Bounty
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.
Context
WordPress ships with a REST API that exposes structured information about a site: posts, users and other resources. It is used to monitor and configure the site when you hold some privileges, and it is reached under the /wp-json/ prefix. The route the author focuses on is the users collection:
/wp-json/wp/v2/users
Depending on configuration and installed plugins, that endpoint can disclose usernames, sometimes real names, sometimes email addresses and other information. The author describes this as a common WordPress "bug" that appears very often, and characterises it as an information disclosure via the REST API.
Setup
The write-up does not describe a specific target, program, account, role, tool or version. It is a general account of the issue, with one example of a report the author submitted. No request, response or HTTP header is shown.
Finding it
The author treats the users route as the most interesting one in the REST API. The observation is that it can return usernames together with real names, and sometimes email addresses, with the exact fields depending on how the site is configured and which plugins are installed. On its own this is rated low to medium impact.
Exploitation
Step 1: Read the users collection
Request the users route on the target:
/wp-json/wp/v2/users
The response is what determines whether the finding is worth pursuing. The author does not include a sample response.
Step 2: Decide whether the leak is substantial
Before reporting, check whether the endpoint leaks enough information. A single username such as admin is not worth a report. Four usernames containing real names, with additional information alongside them, may be worth reporting depending on the scope of the program.
Step 3: Decide whether it can be escalated
The second check is escalation. The author describes two ways to build on the leak:
- Use a disclosed username to brute force the
wp-adminlogin, looking for weak credentials. - Use a disclosed email address for OSINT or CSINT work, because some programs accept leaks. If the email is known to appear in a password leak, those passwords can be tried against the WordPress login.
The author rates the escalated severity by the privileges of the account whose credentials are recovered: high for an editor or author, critical for an administrator, because administrator access allows remote code execution.

The image sits next to the sentence "Here was the last time I reported it"; the write-up gives no further detail.
Root cause
The write-up does not analyse the code or configuration behind the exposure. It presents the users route as a feature of the REST API that returns user information, and attributes the variation in what is returned to site configuration and plugins. Why the endpoint is reachable without authentication on the affected sites is not discussed.
Impact
Disclosure of usernames, sometimes real names, sometimes email addresses and other information. The author rates this low to medium on its own. It becomes high when it leads to an editor or author account and critical when it leads to an administrator account, since administrator access permits remote code execution. The practical value depends on how much is leaked and on the scope of the program receiving the report.
Fix
The write-up does not describe a fix or a change made by any vendor.
Variants to test
- Request
/wp-json/wp/v2/userson other WordPress sites and count the entries. A positive result is several users returned with real names or email addresses rather than a single generic account. - Compare the fields returned across sites with different plugin sets. A positive result is extra fields beyond the username appearing on some installations.
- Take any disclosed username to the
wp-adminlogin and test for weak credentials. A positive result is a valid login, whose severity then depends on the role of that account. - Take any disclosed email address and check it against known password leaks, then try those passwords on the WordPress login. A positive result is a valid login for an account with editor, author or administrator privileges.
What happened, in plain words
A security researcher found that many WordPress websites let anyone see a list of their users, including usernames, real names and sometimes email addresses, just by visiting a particular web address. This is not a break-in by itself, but it gives an attacker useful starting points: they can try common passwords against those usernames, or check if an email address has appeared in a data breach and try the leaked passwords. The researcher explains how to check for this issue, when it is worth reporting, and how the severity grows if the leaked information leads to a login with higher permissions.
Understanding the basics
Before diving into the details, let's clarify some terms that will come up.
- WordPress: A popular system for building websites. It powers blogs, business sites and online stores. It is made of PHP code and a database, and it provides both the public-facing site and an administration area.
- REST API: Think of it as a waiter in a restaurant. You (the client) ask for something specific (like a list of users) using a standard request, and the waiter (the API) brings it back from the kitchen (the website's database). The API defines a set of URLs (called endpoints) that you can call to get or change information. WordPress has its own REST API that exposes data about posts, users, and other things.
- Endpoint: A specific URL within an API that performs a particular function. For example,
/wp-json/wp/v2/usersis an endpoint that returns a list of users. - Information disclosure: A type of security issue where a system reveals information that should be kept private. It's like leaving your diary open on a park bench: anyone passing by can read it.
- Brute force: Trying many passwords or keys until you find the right one. Imagine trying every key on a keyring until one opens the door.
- OSINT/CSINT: Open Source Intelligence (and its variant Closed Source Intelligence) is the practice of gathering information from publicly available sources (like social media, forums, or data breaches) to learn about a target. In this context, it means using a leaked email address to find more information or credentials.
- RCE (Remote Code Execution): A severe security flaw where an attacker can run their own commands on the server. It's like someone not only entering your house but also being able to rearrange the furniture and install new locks.
- wp-admin: The administration dashboard of a WordPress site, where authorised users manage content, settings, and users. Access usually requires a username and password.
The issue: WordPress REST API user enumeration
WordPress comes with a REST API that is enabled by default. It is used by the site itself and by other applications to interact with the site's data. The API is accessed under the /wp-json/ path. For example, the base URL might be https://example.com/wp-json/.
The researcher focuses on one particular endpoint:
/wp-json/wp/v2/users
This endpoint returns a list of users on the site. The response can include usernames, sometimes real names, and other information depending on configuration and plugins. Depending on the site's configuration and installed plugins, it might also include email addresses or other custom fields.
The researcher calls this a common "bug" that appears very often, and classifies it as an information disclosure via the REST API. It is not a vulnerability in the sense of a coding flaw that allows immediate compromise, but rather an exposure of information that can aid further attacks.
How to find it
To check if a WordPress site has this issue, you simply need to visit the users endpoint in a web browser. For example, if the site is https://example.com, you would go to:
Alternatively, you can use a tool like curl from the command line:
This sends a GET request to the endpoint. If the endpoint returns user information, the site exposes it; the report shows no sample responses.
The researcher does not provide a sample response, but based on common WordPress behaviour, a successful response might look like this (this is an example, not from the report):
In this example, the name field shows "John Doe", which could be a real name, and the slug is "johndoe", which is the username.
When is it worth reporting?
Not every instance of this issue is worth reporting to a bug bounty program. The researcher advises checking two things before submitting a report:
-
Does it leak enough information? If the endpoint only returns a single generic username like
admin, it is not worth reporting. But if it returns four usernames that include real names and additional information, it might be worth reporting, depending on the scope of the program. The scope defines which assets and types of issues are eligible for a reward. -
Can you escalate it? Escalation means using the leaked information to gain further access. The researcher describes two ways to escalate:
- Use a disclosed username to brute force the
wp-adminlogin, trying common or weak passwords. - Use a disclosed email address for OSINT/CSINT investigations. Some programs accept reports based on leaked credentials. If the email appears in a known data breach, you can try the leaked passwords against the WordPress login.
- Use a disclosed username to brute force the
If you can escalate to an account with higher privileges, the severity increases. The researcher rates the impact as low to medium on its own, but high if it leads to an editor or author account, and critical if it leads to an administrator account, because administrator access allows remote code execution (RCE).
Example of a reported case
The researcher shares a screenshot of the last time they reported this issue:

The image shows the report they submitted. The write-up does not provide further details about its contents.
Step-by-step: testing and escalating
Here is a structured approach to testing for this issue and attempting escalation.
Step 1: Check the users endpoint
Visit the endpoint on the target site:
/wp-json/wp/v2/users
This is a relative path; prepend the site's base URL. For example, if the site is https://example.com, the full URL is https://example.com/wp-json/wp/v2/users.
Why: This is the simplest way to see if the site exposes user information without authentication.
What to look for: A JSON response containing an array of user objects. If you get an error or a redirect to a login page, the endpoint is protected.
Step 2: Assess the leak
Examine the response. Count the number of users returned. Look for fields like name, slug, and email (if present). Determine if the information is substantial enough to be useful. For example, if you see multiple users with real names and email addresses, that is more valuable than a single admin user.
Why: Bug bounty programs often receive many low-quality reports. The author says a single generic username is not worth reporting.
Step 3: Attempt escalation via brute force
If you have a username, you can try to log in to the WordPress admin panel at /wp-admin/ using common passwords. The researcher does not mention specific tools. The goal is to find weak credentials.
Why: Many people use weak passwords. If you can guess the password, you gain access to the account. The severity then depends on the role of that account.
Step 4: Attempt escalation via leaked credentials
If you have an email address, check if it appears in public data breaches. You might find leaked password lists on the internet. Try those passwords against the WordPress login.
Why: People often reuse passwords across sites. If their email and password were leaked from another site, the same credentials might work on the WordPress site.
Step 5: Determine severity
If you successfully log in, note the role of the account. The researcher states:
- Editor or author: high severity.
- Administrator: critical severity, because administrators can execute arbitrary code on the server (RCE).
Why: Higher privileges mean greater potential damage. Administrator access allows remote code execution.
Root cause
The write-up does not analyse the underlying code or configuration that causes the exposure. It simply presents the users endpoint as a feature of the REST API that returns user information, and notes that what is returned varies with site configuration and plugins. The reason why the endpoint is accessible without authentication on some sites is not discussed.
Impact
The impact is the disclosure of usernames, sometimes real names, sometimes email addresses, and other information. On its own, this is rated low to medium. However, it can be escalated: if it leads to an editor or author account, the impact is high; if it leads to an administrator account, the impact is critical because administrator access allows remote code execution. The practical value depends on how much is leaked and the scope of the bug bounty program.
Fix
The write-up does not describe any fix or vendor response.
Variants to test
- Request
/wp-json/wp/v2/userson other WordPress sites and count the entries. A positive result is several users returned with real names or email addresses rather than a single generic account. - Compare the fields returned across sites with different plugin sets. A positive result is extra fields beyond the username appearing on some installations.
- Take any disclosed username to the
wp-adminlogin and test for weak credentials. A positive result is a valid login, whose severity then depends on the role of that account. - Take any disclosed email address and check it against known password leaks, then try those passwords on the WordPress login. A positive result is a valid login for an account with editor, author or administrator privileges.
Glossary
- WordPress: A free and open-source content management system (CMS) used to build websites and blogs.
- REST API: A set of rules and endpoints that allow different software applications to communicate over HTTP, typically using JSON for data exchange.
- Endpoint: A specific URL within an API that performs a particular function, such as retrieving a list of users.
- Information disclosure: A security weakness where sensitive information is exposed to unauthorised parties.
- Brute force: An attack method that involves trying many possible passwords or keys until the correct one is found.
- OSINT/CSINT: Open Source Intelligence (and Closed Source Intelligence) is the collection and analysis of information from publicly available sources (or closed sources) to support decision-making.
- RCE (Remote Code Execution): A vulnerability that allows an attacker to execute arbitrary code on a remote server.
- wp-admin: The administrative dashboard of a WordPress site, accessible at
/wp-admin/. - JSON: JavaScript Object Notation, a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate.
- GET request: An HTTP method used to request data from a specified resource.
- Scope: In bug bounty programs, the defined set of assets (domains, applications, etc.) and types of vulnerabilities that are eligible for rewards.
- Severity: A rating of the potential impact of a vulnerability, often expressed as low, medium, high, or critical.
- Editor/Author: WordPress user roles. An editor can publish and manage posts, including those of other users. An author can publish and manage their own posts.
- Administrator: A WordPress user role with full control over the site, including the ability to install plugins, change themes, and execute code.