How did I get 200$ with WordPress vulnerability!!!
The WordPress REST API allowed simulating a GET request via a POST with a method override, which bypassed restrictions and exposed user information such as email addresses. An attacker could retrieve this sensitive data without authentication.
{{media:0}}
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
This is a short account of an information disclosure finding on a WordPress site, paid at 200 USD. The target is referred to only as target.com, and the report does not name the programme or the organisation behind it. The feature involved is the WordPress REST API, specifically the users endpoint, which normally exposes a list of users on a site. The researcher's interest was in CMS and third-party components, and the write-up is framed as a small, low-effort finding rather than a deep exploit chain.

The author is Nguhuynh, and the post was published on 2 July 2023.
Setup
The report describes no accounts, roles or special access. The only tool named is WordPress Scan, used to fingerprint the target. The precondition is simply that the target is built on WordPress and that the REST API is reachable. No version numbers are given.
Finding it
The starting point was a public HackerOne report, https://hackerone.com/reports/384782, which the author quotes:
the REST API allows simulating different request types. As such, we can perform a POST request with the "users" string in the body of the request, and tell the REST API to act like it's received a GET request.
The idea is that the REST API can be told, through a method override, to treat a POST as a GET. The author reduces this to a single payload:
curl https://target.com/?_method=GET -d rest_route=/wp/v2/users
After confirming that target.com runs WordPress, the author ran WordPress Scan against it. The scan found nothing, so the next step was manual checking of the usual user enumeration paths:
https://target.com/wp-json/wp/v2/users/
https://target.com/wp-json/?rest_route=/wp/v2/users/
These returned no new findings. The paths themselves are the standard REST API routes for listing users, and the second is the same route expressed through the rest_route query parameter.
Exploitation
Step 1: fingerprint the target
WordPress Scan was run against the target to confirm the CMS and look for known issues. It reported no vulnerability, so the author moved to manual testing.
Step 2: try the direct REST API routes
The two routes above were requested directly. Neither produced anything useful.
Step 3: apply the method override
The payload from the referenced report was then sent:
curl https://target.com/?_method=GET -d rest_route=/wp/v2/users
This worked. The _method=GET parameter tells the application to treat the incoming POST as a GET, and -d rest_route=/wp/v2/users supplies the REST route in the request body. The author reports that this worked, though the response body is not shown. The report does not show the response body, so the exact fields returned are not stated; the author's later note about seeing "some interesting information(email,…)" indicates that user details such as email addresses are the kind of data at stake.
Root cause
The report does not analyse the underlying code. What it shows is that the application honours a _method override on a POST request and routes the request to the REST API users endpoint, returning data that a plain GET to the same route did not. Why the direct GET failed while the overridden POST succeeded is not explained in the text; likely the override path bypasses whatever restriction was applied to the direct route, but the report does not confirm this. The author also notes that some programmes will not accept this class of finding because the behaviour is an expected action, which suggests the exposure is a design characteristic of the REST API rather than a defect introduced by the target.
Impact
The impact is information disclosure: enumeration of WordPress users, potentially including email addresses and other details. The author is explicit that "we can't go far with this eazy vulnerability", so the finding is limited in scope. It applies to WordPress targets where the REST API is reachable and where the override behaves as observed.
Fix
It only notes that some programmes reject the finding as expected behaviour, and that when interesting information such as email addresses is exposed, it is worth reporting.
Variants to test
The author lists further payloads to try. Each is a path to request against a WordPress target; a positive result is a response containing user data or other information that should not be publicly available.
/wp-json/wp/v2/users/
/wp-json/?rest_route=/wp/v2/users/
/wp-json/wp/v2/users/n
/wp-json/?rest_route=/wp/v2/users/n
/?author=n
Here n means a number such as 1, 2, 3, 4 and so on, used to address individual user records or author archives.
/wp-json/wp/v2/sensei-messages/<numericID>
/wp-json/tenwebio/v2/compress-one
/wp-json/oembed/1.0/embed?url=https://www.example.domain/&format=json
The first is a route under sensei-messages with a numeric identifier, the second a route under tenwebio, and the third the oEmbed endpoint with a JSON format parameter. For each, a positive result is a response that returns data the endpoint should not expose to an unauthenticated caller.
What happened, in plain words
A security researcher found a way to make a WordPress website return its users list by sending a request in a slightly unusual form. The site's normal, obvious way of asking for that list returned no new findings. By wrapping the same request inside a different kind of request and adding a small instruction that said "treat this as a read, not a write", the data came back. The researcher reported it and was paid 200 USD.
That is the whole story. There is no clever chain of exploits here, no breaking into an admin panel, no taking over an account. It is a short, low-effort finding on a site built with WordPress, and the author says so plainly: "we can't go far with this eazy vulnerability". The value is in the information that leaks, not in what you can do with it afterwards.
The target is referred to only as target.com. The report does not name the bug bounty programme or the organisation behind the site.

The post is by Nguhuynh and was published on 2 July 2023.
Before going further, a few ideas from zero, because everything below depends on them.
- CMS (Content Management System): software that lets people build and run a website without writing every page by hand. You write a post in an editor, the CMS stores it and serves it to visitors. WordPress is the most widely used CMS in the world, which is why so many sites look similar underneath.
- Third-party component: a piece of software written by someone other than the site owner, plugged into the site to add a feature. Think of a plug-in for a browser, or an add-on for a spreadsheet program. WordPress sites are built from a core plus many of these add-ons (themes and plugins).
- API (Application Programming Interface): a way for one piece of software to talk to another, or for a person with a tool to talk to a website in a structured way. A useful comparison is a restaurant. The dining room is the website you see in a browser; the kitchen is the database and the code behind it; the menu and the waiter are the API. You do not walk into the kitchen yourself, you ask the waiter for a specific dish by name, and food comes back in a predictable form. An API works the same way: you ask for a named thing, and data comes back in a predictable form.
- REST API: a particular style of API that uses ordinary web addresses (URLs) to name things, and ordinary web request types to say what you want to do with them. WordPress ships with one, and it lives under paths beginning with
/wp-json/. - Endpoint: one specific address inside an API, the equivalent of one line on the menu. The WordPress users endpoint is the line that says "give me the list of users".
- HTTP request method: the verb at the start of every web request.
GETmeans "read this and give it back to me".POSTmeans "here is some data, do something with it". When you load a page in your browser, your browser is sending aGET. - Information disclosure: the security term for a system revealing data to someone who should not have it. It is not about changing anything or breaking in; it is about something private becoming visible. A comparison: a filing cabinet that is locked, but whose glass front lets anyone read the labels on every folder inside.
- User enumeration: using a system's responses to work out which user accounts exist. Even a list of usernames with no passwords is useful to an attacker, because it tells them who to target and what to guess.
The starting point: someone else's report
The author had been spending time on CMS and third-party component vulnerabilities. While reading around, they came across a public HackerOne report, https://hackerone.com/reports/384782, and quoted the key sentence from it:
the REST API allows simulating different request types. As such, we can perform a POST request with the "users" string in the body of the request, and tell the REST API to act like it's received a GET request.
Unpack that sentence. Normally, the type of a request is fixed by whoever sends it: if you send a POST, the server treats it as a POST. What this report describes is a feature where the request can carry a note inside itself saying "actually, please treat me as a GET". The server reads the note and changes its behaviour accordingly. This is called a method override, and it exists for boring, practical reasons: some clients and some network setups can only send one kind of request, so the override lets them ask for other kinds anyway.
The author reduced the idea to a single command:
curl https://target.com/?_method=GET -d rest_route=/wp/v2/users
Line by line, in plain words:
curlis a command-line tool for sending web requests. It is the browser's address bar without the pictures: you give it a URL, it fetches what is there and prints the raw answer. It is available on most computers, including Windows, macOS and Linux.https://target.com/?_method=GETis the address being requested. The part before the?is the site. Everything after the?is a query string: a list of name-equals-value pairs carried along with the address, the same thing you see in a browser when a URL ends in something like?search=cats. Here the pair is_method=GET, which is the note asking the server to treat this request as a read even though it is being sent as a write.-d rest_route=/wp/v2/userstellscurlto send a body of data along with the request.-dstands for data. The body here isrest_route=/wp/v2/users, which names the API route the author wants: the users list. Sending a body is what makes this aPOSTrather than aGET.
So the command is doing something deliberately contradictory: it sends a write-style request whose body names the users list, while the address carries a note saying "read this". The bet is that the server will honour the note, treat the whole thing as a read, and return the users list.
Trying it on the target
When the author noticed that target.com was built with WordPress, the first move was to run a scanner called WordPress Scan against it. A scanner is a program that automates the boring first pass: it looks at a site and reports what software it is running, which versions, and which known weaknesses apply. The comparison is a mechanic plugging a diagnostic tool into a car before opening the bonnet: it tells you the make and model and flags known faults, but it does not fix anything.
The scan found no vulnerability. The author's own comment on this is a shrug: "And of course no vulnerability:))". This is worth internalising if you are new to this. A clean scanner result does not mean a site is safe. It means the site does not match the scanner's list of known problems. Anything the scanner has not been told about, or anything that depends on how the site is configured rather than what version it runs, will pass straight through.
So the author switched to manual checks, starting with the obvious addresses for the WordPress users list:
https://target.com/wp-json/wp/v2/users/
https://target.com/wp-json/?rest_route=/wp/v2/users/
Line by line:
- The first address asks the REST API directly for the users collection.
wp-jsonis where the WordPress REST API lives,wpis the WordPress namespace,v2is the version of that namespace, andusersis the collection being requested. You could paste this into a browser address bar and press Enter. - The second address asks for the same thing by a different route. Instead of putting the route in the path, it puts it in the query string as
rest_route=/wp/v2/users/. WordPress accepts both forms, so a site that blocks one might still answer the other. Trying both is the manual equivalent of checking whether the back door is locked as well as the front.
Neither returned anything useful. The author's summary: "With no new findings:((".
The step that worked
The author then sent the payload from the referenced report against the target:
curl https://target.com/?_method=GET -d rest_route=/wp/v2/users
This is the same command as before, now aimed at the real site rather than the placeholder. It worked: "And that was work very well (¬‿¬)".
Why does this matter when the direct requests failed? The report does not dig into the site's code, so the exact reason is not stated. What can be said from the text is the shape of it: the direct GET requests to the users route returned nothing useful, while a POST carrying _method=GET and the same route in its body returned the users data. The most natural reading is that whatever restriction sat in front of the direct route did not apply to the override path, so the request slipped past it. The report does not confirm that, and it does not show the response body, so the exact fields returned are not stated either. The author's later remark about seeing "some interesting information(email,…)" tells you the kind of data at stake: user details, email addresses among them.
Why this happens, and what it is worth
The report does not analyse the underlying code, so there is no root cause section to relay beyond the behaviour itself: the application honours a _method override on a POST and routes the request to the REST API users endpoint, returning data that a plain GET to the same route did not.
The author adds an important caveat for anyone thinking of reporting this: some programmes will not accept it, "because this is an expected action". In other words, the WordPress REST API exposing a users list is, in many configurations, the software doing exactly what it was designed to do, not a mistake introduced by the site owner. Whether it counts as a vulnerability depends on the programme's rules and on what the list actually contains. That is why the author's advice is conditional: when you see interesting information such as email addresses, it is worth reporting.
The impact is therefore information disclosure: enumeration of WordPress users, potentially including email addresses and other details. The author is explicit that the finding is limited, and the report describes no path from a user list to account takeover or any other escalation.
Other addresses worth trying
The author lists further payloads to try on WordPress targets. Each is an address to request; a positive result is a response containing user data or other information that should not be publicly available.
/wp-json/wp/v2/users/
/wp-json/?rest_route=/wp/v2/users/
/wp-json/wp/v2/users/n
/wp-json/?rest_route=/wp/v2/users/n
/?author=n
Line by line:
- The first two are the users collection again, in path form and query-string form, the same pair tried earlier.
- The third and fourth ask for a single user record rather than the whole list. The
nat the end is a placeholder for a number. - The fifth,
/?author=n, is a different trick entirely. The fifth,/?author=n, uses a number in place ofn. It is the same enumeration idea reached through the ordinary website rather than the API.
Here n means a number such as 1, 2, 3, 4 and so on, used to address individual user records or author archives. Trying a handful of small numbers is usually enough to see whether the door is open.
/wp-json/wp/v2/sensei-messages/<numericID>
/wp-json/tenwebio/v2/compress-one
/wp-json/oembed/1.0/embed?url=https://www.example.domain/&format=json
Line by line:
- The first targets a route belonging to a plugin,
sensei-messages, with a numeric identifier in place of<numericID>. The first targets a route undersensei-messageswith a numeric identifier in place of<numericID>. - The second targets a route named
compress-oneunder thetenwebionamespace. - The third targets the oEmbed endpoint. oEmbed is the feature that lets a site show a preview of a link you paste, and this address asks for that preview in JSON format. JSON is just a text format for structured data, the kind of thing an API returns so a program can read it easily.
For each of these, a positive result is a response that returns data the endpoint should not expose to someone who is not logged in.
Glossary
- API (Application Programming Interface): a structured way for software, or a person with a tool, to ask a system for specific data or actions, rather than browsing pages meant for humans.
- CMS (Content Management System): software for building and running a website without hand-writing every page; WordPress is one.
- curl: a command-line tool that sends web requests and prints the raw response, useful for talking to APIs.
- Endpoint: one specific address within an API that names one thing you can ask for.
- GET: the HTTP request method meaning "read this and return it".
- HackerOne: a bug bounty platform where researchers report vulnerabilities to organisations and can be paid for them.
- HTTP request method: the verb at the start of a web request that says what kind of action is intended, such as
GETorPOST. - Information disclosure: a vulnerability class where a system reveals data to someone who should not have access to it.
- JSON: a plain-text format for structured data, commonly returned by APIs.
- Method override: a feature that lets a request carry a note asking the server to treat it as a different request method than the one it was sent with.
- oEmbed: a feature that lets a site display a preview of a linked page.
- Plugin: a third-party add-on that extends a CMS with extra features.
- POST: the HTTP request method meaning "here is some data, act on it".
- Query string: the part of a URL after the
?, carrying name-equals-value pairs. - REST API: an API style that uses URLs to name things and request methods to say what to do with them.
- REST route: the path inside a REST API that names a resource, such as the users collection.
- Scanner: a program that automatically checks a target for known software and known weaknesses.
- Third-party component: software written by someone other than the site owner and plugged into the site.
- User enumeration: working out which user accounts exist on a system from its responses.
- WordPress Scan (wpscan): a scanner specifically for WordPress sites, used here to fingerprint the target.
- WordPress REST API: the built-in API of WordPress, reachable under
/wp-json/.