We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please check this page: https://vulners.com/hackerone/H1:356047
A way to reproduce it, is to access your site trough: https://example.com/wp-json/wp/v2/users
https://example.com/wp-json/wp/v2/users
Even with author pages disabled, the usernames list is disclosed and accessible. A presented solution for that is to add a filter:
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; });
I've tried and it worked on my side. Can you consider to add it to your pluggin?
The text was updated successfully, but these errors were encountered:
Trying to address issue staude#10
308d090
Successfully merging a pull request may close this issue.
Please check this page:
https://vulners.com/hackerone/H1:356047
A way to reproduce it, is to access your site trough:
https://example.com/wp-json/wp/v2/users
Even with author pages disabled, the usernames list is disclosed and accessible. A presented solution for that is to add a filter:
I've tried and it worked on my side. Can you consider to add it to your pluggin?
The text was updated successfully, but these errors were encountered: