QID 150754
Date Published: 2023-12-06
QID 150754: WordPress REST API User Enumeration Vulnerability
WordPress is an open source blogging tool and content management system based on PHP and MySQL.
WordPress REST API username enumeration is a security vulnerability that allows attackers to discover valid usernames on a WordPress site by exploiting the endpoint.
QID Detection Logic:
This QID sends a HTTP GET request to "wp-json/wp/v2/users" or "?rest_route=/wp/v2/users" endpoints and checks the response body to confirm the vulnerability.
Successful exploitation allows an unauthenticated attacker to gain access to the list of users on a WordPress installation that have published atleast one post.
Solution
To prevent WordPress REST API username enumeration, use a WordPress plugin like "Stop User Enumeration", disable REST API or implement custom .htaccess rules to block username enumeration requests.
Vendor References
CVEs related to QID 150754
Software Advisories
| Advisory ID | Software | Component | Link |
|---|