Skip to content
Info disclosure Write-up Beginner

Revisiting the Past, Hacking the Future

The WordPress REST API exposed usernames, including an admin account. By trying to log in with each username and a random password, the attacker could tell from different error messages which usernames were valid, confirming the admin account.

infosecwriteups.com

Published on infosecwriteups.com

If you’ve read my earlier other bug bounty write-up, you already know how it all started — with me rushing to report something, even if it turned out to be invalid. It wasn’t about chasing bounties back then — I just wanted to contribute.

SIDDHANT SHUKLA, on infosecwriteups.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 exposed user information and the login page revealed whether a username existed through different error messages.

Impact

An attacker could enumerate valid usernames, including an admin account, which could help with password guessing, though the report only confirms the enumeration.

What the attacker needed

None

The fix

The vulnerable path was restricted to prevent further exposure.

How it was found

  1. Visit the WordPress REST API endpoint that lists users.
  2. Note the usernames returned, including one containing the company name.
  3. Go to the login page and try each username with a random password.
  4. Observe that one username gives a different error message, confirming it is valid.

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.

WordPress has a feature that lists users, and the login page gives different error messages depending on whether a username exists. An attacker can use these messages to find valid usernames, including the admin's, which makes guessing the password easier.

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.