Skip to content
Info disclosure Write-up Beginner

this is my first bug i found

The WordPress REST API users endpoint was reachable without authentication and returned a list of registered accounts with profile details. An attacker could use that list to learn valid usernames and then aim brute-force or credential-stuffing attempts at them.

medium.com

Published on medium.com

Bug Bounty Writeup

Boss, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 3 min read.

Context

This is a short account of a first bug bounty report. The researcher describes the finding as a leak of user data through the WordPress REST API, specifically the endpoint /wp-json/wp/v2/users. The report does not name the affected program, the site, or the bounty amount; it only says the reward was not large but that the moment was special after a run of duplicates and N/A submissions.

The feature involved is the standard WordPress users route. WordPress exposes a REST API under /wp-json/, and the wp/v2/users collection is meant to return information about registered users of the site. The report's claim is that this collection answers unauthenticated requests, so anyone can list accounts and the profile fields attached to them.

Setup

The report describes no accounts, roles, tools or versions. The only precondition implied by the steps is network access to the target site, since the request is sent without authentication. The researcher mentions using a mix of AI assistance and manual work, without describing how either was applied.

Finding it

The researcher does not describe the moment of discovery in technical terms. What the report presents is the finding itself: the users endpoint is reachable without logging in and returns a list of users. The data named in the bug report title is user ID, display name, slug (username), author profile URL and avatar URLs.

Exploitation

Step 1: request the users collection

The only step given is a GET request to the users endpoint:

The path selects the wp/v2 namespace and the users collection. No headers, cookies or parameters are specified, which is the point: the request carries no authentication.

Step 2: read the response

The report states that a list of users is returned without authentication. It does not reproduce the response body, so the exact JSON fields are not shown here; the fields named in the report are user ID, display name, slug, author profile URL and avatar URLs.

Root cause

The report does not analyse the code or configuration behind the behaviour. The observable fact is that the wp/v2/users collection is publicly accessible and answers unauthenticated requests. Why that is the case on this particular site, whether through default WordPress behaviour, a plugin, or a configuration choice, is not stated. The report also does not say what, if anything, was done to restrict the endpoint afterwards.

Impact

The report lists three consequences:

  1. Identifying valid usernames, with admin given as an example.
  2. Performing targeted brute-force or credential stuffing attacks.
  3. Reducing attack complexity by eliminating guesswork.

These are the researcher's stated impacts. The report gives no evidence of an actual brute-force or credential stuffing attempt, and no numbers for how many users were exposed.

Fix

It ends after the impact section.

Variants to test

These follow from the same idea and are not part of the report:

  • Request /wp-json/wp/v2/users on other WordPress sites and check whether the response is a populated JSON array rather than an authentication error. A positive result is a list of user objects returned to an unauthenticated client.
  • Try the same collection with query parameters that the WordPress REST API commonly accepts, such as pagination or search, and see whether more records are returned than on the bare request. A positive result is additional user objects beyond the first page.
  • Check the single-user route, /wp-json/wp/v2/users/<id>, for IDs observed in the collection. A positive result is a full user object returned without authentication.
  • Compare the fields returned by the API with what the public site already shows. A positive result is a field in the API response, such as a slug or display name, that is not otherwise exposed.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

A security researcher submitted their first bug bounty report. Before this one, they had sent in a lot of reports that came back as duplicates (someone else had already reported the same thing) or N/A (not applicable, meaning the company decided it was not a real problem). The report says the reward was not large, but that the moment was special for them.

The bug itself is simple to describe. A site was answering a question from anyone on the internet, without asking them to log in first. The question was: "who are your users?" The answer was a list of accounts, with details attached to each one.

The researcher describes this as a leak of user data through the WordPress REST API, specifically the endpoint /wp-json/wp/v2/users. The report does not name the affected program, the site, or the bounty amount.

To follow along you only need a browser. You do not need to install anything or write any code.

The pieces you need to know first

Before the steps, a few words that come up constantly. Each one is explained from zero.

WordPress is a free system for building websites. A large share of the web runs on it. It gives you a dashboard where you write posts and pages, and it stores the people who can log in as "users".

An API is a way for one piece of software to talk to another. A useful comparison is a restaurant. You do not walk into the kitchen and cook; you tell the waiter what you want and the waiter brings it back. The API is the waiter: you send a request in a fixed format, and it sends back an answer in a fixed format. Websites use APIs so that their own pages, mobile apps and other services can all fetch the same information.

REST is just a style for designing such APIs. In REST, everything is a "resource" with an address, and you act on it with standard verbs. The two verbs that matter here are GET (fetch something) and POST (send something new).

An endpoint is one specific address inside an API. If the API is the restaurant, an endpoint is one item on the menu, at one address. Here the endpoint is /wp-json/wp/v2/users.

JSON is the text format APIs usually answer in. It looks like a set of labelled boxes: names in quotes, values after a colon, lists in square brackets. It is readable by both people and machines.

Authentication means proving who you are. Logging in with a username and password is authentication. A request that carries no proof of identity is called unauthenticated, and that is the heart of this bug.

A cookie is a small piece of text a website stores in your browser after you log in, so it can recognise you on the next page. A token is a similar idea in a different shape: a string of characters that acts as proof of identity. When you are logged in, your browser sends the cookie or token with every request. When you are not logged in, it sends nothing, and the server should treat you as a stranger.

Enumeration means listing things one by one. If a site lets you list its users, you can enumerate them: collect every valid account name.

Brute force means guessing a password by trying many possibilities, one after another, until one works. Credential stuffing is a related trick: people reuse passwords across sites, so an attacker takes username and password pairs leaked from one site and tries them on another.

A bug bounty is a programme where a company pays people outside the company for reporting security problems responsibly, instead of exploiting them.

The finding

The researcher does not describe the exact moment of discovery in technical terms. What the report presents is the finding itself: the users endpoint can be reached without logging in, and it returns a list of users.

The data named in the bug report title is:

  • user ID
  • display name
  • slug (the username)
  • author profile URL
  • avatar URLs

The report describes no accounts, roles, tools or versions. The only precondition is that you can reach the target site over the network, because the request is sent without authentication. The researcher mentions using a mix of AI assistance and manual work, without describing how either was applied.

Step 1: ask the site for its list of users

The only step given is a GET request to the users endpoint:

Line by line:

  • GET is the verb. It means "give me something, do not change anything". It is the same kind of action your browser performs when you open a normal web page.
  • https://example.com is the address of the site. In the report it is a placeholder; the real target is not named.
  • /wp-json/ is the part of the address where WordPress exposes its API. The name is literal: WordPress, in JSON.
  • wp/v2 is the namespace and version. A namespace groups related endpoints, and v2 means version 2 of that group. Versioning lets the makers of WordPress change the API later without breaking things that already use it.
  • /users is the collection being asked for. A collection is a list of things of the same kind, here the registered users of the site.

No headers, cookies or parameters are specified, and that is the point. The request carries no authentication at all. It is as if you walked into the restaurant, sat down, and asked for the staff list without anyone checking whether you work there.

Why take this step? Because the whole claim of the bug is that this address answers strangers. Sending the request with nothing attached is the cleanest possible test of that claim.

Step 2: read the answer

The report states that a list of users is returned without authentication. It does not reproduce the response body, so the exact JSON fields are not shown here. The fields named in the report are user ID, display name, slug, author profile URL and avatar URLs.

What each of those means in practice:

  • The user ID is the internal number WordPress gives each account.
  • The display name is the name shown publicly on posts.
  • The slug is the short version of the username used in web addresses.
  • The author profile URL is the public page for that author.
  • The avatar URLs are links to the small profile pictures shown next to posts.

Why read the answer carefully? Because the impact depends on what is inside it. A list of display names alone is mild. A list of valid login names is a starting point for guessing passwords.

Why this happens

The report does not analyse the code or configuration behind the behaviour. The observable fact is that the wp/v2/users collection is publicly accessible and answers unauthenticated requests. Why that is the case on this particular site, whether through default WordPress behaviour, a plugin, or a configuration choice, is not stated. The report also does not say what, if anything, was done to restrict the endpoint afterwards.

What an attacker could do with it

The report lists three consequences:

  1. Identifying valid usernames, with admin given as an example.
  2. Performing targeted brute-force or credential stuffing attacks.
  3. Reducing attack complexity by eliminating guesswork.

With real usernames in hand, password guessing becomes targeted rather than blind, and stolen password lists from other sites can be tried against names that are known to be valid.

These are the researcher's stated impacts. The report gives no evidence of an actual brute-force or credential stuffing attempt, and no numbers for how many users were exposed.

Was there a fix?

It ends after the impact section.

Related things you could check

These follow from the same idea and are not part of the report:

  • Request /wp-json/wp/v2/users on other WordPress sites and check whether the response is a populated JSON array rather than an authentication error. A positive result is a list of user objects returned to an unauthenticated client.
  • Try the same collection with query parameters that the WordPress REST API commonly accepts, such as pagination or search, and see whether more records are returned than on the bare request. A positive result is additional user objects beyond the first page.
  • Check the single-user route, /wp-json/wp/v2/users/<id>, for IDs observed in the collection. A positive result is a full user object returned without authentication.
  • Compare the fields returned by the API with what the public site already shows. A positive result is a field in the API response, such as a slug or display name, that is not otherwise exposed.

Glossary

  • API: a fixed way for one piece of software to ask another for information, like a waiter taking your order to the kitchen.
  • Authentication: proving who you are, usually by logging in.
  • Unauthenticated: a request that carries no proof of identity, such as no cookie or token.
  • Author profile URL: the public web page that lists a given author's posts.
  • Avatar URL: a link to the small profile picture shown next to a user's posts.
  • Brute force: guessing a password by trying many possibilities in turn.
  • Bug bounty: a programme that pays outsiders for responsibly reporting security problems.
  • Collection: in a REST API, a list of things of the same kind, such as all users.
  • Cookie: a small piece of text stored in your browser after you log in, so the site can recognise you next time.
  • Credential stuffing: trying username and password pairs stolen from one site on another site, relying on people reusing passwords.
  • Display name: the name a user is shown under publicly, often their real name.
  • Duplicate: a report for a bug that someone else already reported.
  • Endpoint: one specific address inside an API, such as /wp-json/wp/v2/users.
  • Enumeration: listing items one by one, here collecting every valid username.
  • GET: the standard request verb meaning "give me something", without changing anything.
  • JSON: a text format for structured data, with names, values and lists.
  • N/A: not applicable; a report the company decided was not a real problem.
  • Namespace: a grouping of related API endpoints, here wp/v2.
  • Pagination: splitting a long list into pages, so you fetch it a chunk at a time.
  • Query parameter: an extra piece of information added to the end of an address after a question mark, used to filter or page results.
  • REST: a common style for designing APIs, where each resource has an address and is acted on with standard verbs.
  • Slug: the short, address-friendly form of a name, here the username.
  • Token: a string of characters that acts as proof of identity, an alternative to a cookie.
  • User ID: the internal number WordPress assigns to each account.
  • WordPress: a widely used system for building and running websites.
  • WordPress REST API: the part of WordPress that answers API requests, found under /wp-json/.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.