Skip to content
Info disclosure Disclosed report Beginner

Wordpress Users Disclosure (/wp-json/wp/v2/users/) on data.gov

The WordPress REST API endpoint on data.gov exposed a list of user accounts, including usernames and author links. An attacker could collect these usernames to make brute-force attacks easier.

nagli Follow

Originally disclosed on HackerOne

  • Disclosed after 2 days

Summary:

Hello TTS Bug bounty team!

I have found data.gov User/admin usernames disclosed. Using REST API, we can see all the WordPress users/author with some of their information.

Steps To Reproduce:

You can find the information disclosure by going to (data.gov/wp-json/wp/v2/users/)

Supporting Video:

data.gov.mov From the original on HackerOne

Response:

JavaScript
[{"id":600633,"name":"Aaron Borden","url":"","description":"","link":"https:\/\/www.data.gov\/author\/aaron-bordengsa-gov\/","slug":"aaron-bordengsa-gov","avatar_urls":etc....

Fix:

Use this code will hide the users list and give 404 as the result, while rest of the api calls keep running as they were.

JavaScript
add_filter( 'rest_endpoints', function( $endpoints ){
    if ( isset( $endpoints['/wp/v2/users'] ) ) {
        unset( $endpoints['/wp/v2/users'] );
    }
    if ( isset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] ) ) {
        unset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] );
    }
    return $endpoints;
});

Similar reports:

(https://hackerone.com/reports/356047) (https://hackerone.com/reports/370777) (https://hackerone.com/reports/772744)

Thank you very much.

Impact

Malicious counterpart could collect the usernames disclosed (and the admin user) and be focused throughout BF attack (as the usernames are now known), making it less harder to penetrate the data.gov systems.

The original report as published on HackerOne, by nagli. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report 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 left enabled by default, exposing user data without authentication.

Impact

An attacker could collect the disclosed usernames, including the admin user, and use them to focus brute-force attacks, making it easier to try to break into data.gov systems.

What the attacker needed

None

The fix

The report suggests removing the users endpoints from the REST API using a filter so they return a 404 while other API calls continue to work.

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

WordPress websites often have a built-in web address that lists all the people who write posts. This report found that data.gov left that list open, so anyone could see the usernames. Knowing usernames makes it easier for someone to guess passwords and break into accounts.

What is Info disclosure?

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

More by nagli

View all

33 more disclosed reports, best first.

More from GSA Bounty

View all

The newest disclosed reports for this program.

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.