Skip to content
Info disclosure Write-up Beginner

Disclosure of User Information via JSON Response on WordPress REST API

The WordPress REST API /wp-json/wp/v2/users/ endpoint was accessible without authentication and returned a JSON list of registered users, including their IDs, display names, and slugs (often the login username). An attacker could use this to enumerate valid usernames and then target them with brute-force, password spraying, or phishing.

harshitp1971 Follow

Published on medium.com

Ek cybersecurity enthusiast jo bug bounty aur web application security seekh raha hun. Recon methodology, web vulnerabilities, aur “attacker jaisa sochna” — yahi cheezein mujhe sabse zyada excite karti hain.

harshit patel, 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.

Not written yet. The AI write-up for this write-up 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 not restricted, allowing unauthenticated access to user data.

Impact

An attacker could obtain confirmed valid usernames, which could then be used for brute-force, password spraying, credential stuffing, and targeted phishing; the author rates severity as low-to-medium.

What the attacker needed

None

The fix

The endpoint should be restricted by updating WordPress to 4.7.1 or later, disabling the /users endpoint via code, using a security plugin, and adding defense-in-depth measures like login attempt limits and 2FA.

How it was found

  1. Open the URL https://domain.com/wp-json/wp/v2/users/ in a browser or with curl.
  2. The response is a JSON array listing exposed users.
  3. To get individual users, append a numeric ID to the endpoint and increment/decrement to iterate through users.

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 write-up has not been written yet. The Original tab links to the source.

A website's REST API is like a data door that you can open with a URL. Here, a standard WordPress URL returned a list of all users without asking for a password. That list included usernames, which an attacker could use to guess passwords or send fake emails.

What is Info disclosure?

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

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.