Skip to content
Info disclosure Disclosed report Beginner

Wordpress Users Disclosure (/wp-json/wp/v2/users/) on sifchain.finance

The WordPress REST API users endpoint on the site returned a list of all registered users, including their display names, slugs, author links and avatar URLs. An attacker could use this list to enumerate valid usernames and then attempt brute-force attacks against them.

Ibrahim Auwal Follow

Originally disclosed on HackerOne

  • Disclosed after 1 hour

##Information:

Using REST API, we can see all the WordPress users/author with some of their information.

##Step To Reproduce:

You can get user info by entering below url in your browser: https://www.sifchain.finance/wp-json/wp/v2/users/ ##Results:

[{"id":194643529,"name":"alithecurios","url":"","description":"","link":"https:\/\/sifchain.finance\/author\/alithecurios\/","slug":"alithecurios","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/04fd4bda8c4fbc9e9803b9e7b443d20c?s=24&d=identicon&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/04fd4bda8c4fbc9e9803b9e7b443d20c?s=48&d=identicon&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/04fd4bda8c4fbc9e9803b9e7b443d20c?s=96&d=identicon&r=g"},"meta":{"admin_color":"fresh"},"_links":{"self":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users\/194643529"}],"collection":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users"}]}},{"id":194643526,"name":"Asha Sreekumar","url":"","description":"","link":"https:\/\/sifchain.finance\/author\/asha8fd635db6e9\/","slug":"asha8fd635db6e9","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/921005cc7364499b48fddd53e56631c5?s=24&d=identicon&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/921005cc7364499b48fddd53e56631c5?s=48&d=identicon&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/921005cc7364499b48fddd53e56631c5?s=96&d=identicon&r=g"},"meta":{"admin_color":"fresh"},"_links":{"self":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users\/194643526"}],"collection":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users"}]}},{"id":194418990,"name":"Nick Friedland","url":"http:\/\/sifchain.wordpress.com","description":"","link":"https:\/\/sifchain.finance\/author\/nick0ba02a28924\/","slug":"nick0ba02a28924","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/97d871be405966ec0a282936d91d052a?s=24&d=identicon&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/97d871be405966ec0a282936d91d052a?s=48&d=identicon&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/97d871be405966ec0a282936d91d052a?s=96&d=identicon&r=g"},"meta":{"admin_color":"fresh"},"_links":{"self":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users\/194418990"}],"collection":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users"}]}},{"id":194643527,"name":"thomassifchain","url":"","description":"","link":"https:\/\/sifchain.finance\/author\/thomassifchain\/","slug":"thomassifchain","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/b8b1d369fba5dbcde51a60bd415cdc5a?s=24&d=identicon&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/b8b1d369fba5dbcde51a60bd415cdc5a?s=48&d=identicon&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/b8b1d369fba5dbcde51a60bd415cdc5a?s=96&d=identicon&r=g"},"meta":{"admin_color":"fresh"},"_links":{"self":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users\/194643527"}],"collection":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users"}]}},{"id":194428061,"name":"ultrus77","url":"","description":"","link":"https:\/\/sifchain.finance\/author\/ultrus77\/","slug":"ultrus77","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/eb17cf74a5235990f75b618313feb155?s=24&d=identicon&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/eb17cf74a5235990f75b618313feb155?s=48&d=identicon&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/eb17cf74a5235990f75b618313feb155?s=96&d=identicon&r=g"},"meta":{"admin_color":"fresh"},"_links":{"self":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users\/194428061"}],"collection":[{"href":"https:\/\/sifchain.finance\/wp-json\/wp\/v2\/users"}]}}]

##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.

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;
});

Impact

Authors : LTR , LTREditor can be created scenario of doing bruteforce attacks to this users.

The original report as published on HackerOne, by ibrahimatix0x01. 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 and publicly reachable, so it disclosed account details to unauthenticated visitors.

Impact

The exposed list of authors and editors could be used as the basis for brute-force attacks against those accounts.

What the attacker needed

No account needed; browser access to the site

The fix

The reporter suggests removing the users endpoints from the REST API with a filter so they return 404 while other API calls keep working.

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 has a REST API address that can list the site's authors. On this site it was reachable, so a visitor could see account names, which makes guessing passwords easier.

What is Info disclosure?

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

More by Ibrahim Auwal

View all

12 more disclosed reports, best first.

More from Sifchain

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.