Firewall rules for ████████ can be bypassed to leak site authors
Firewall rules blocking certain WordPress endpoints could be bypassed by adding extra slashes to the URL path, allowing access to the user listing API and the login page. An attacker could then read the display names and author details of site users that were meant to be hidden.
Originally disclosed on HackerOne
- Triaged in 17 hours
- Fixed in 13 days
- Disclosed after 6 months
Summary: ████ is a WordPress application that has several endpoints locked behind firewall, such as login screen and author names, but it can be bypassed.
Description: By using additional slashes in the URL, I can bypass the firewall rules to display some WordPress information. Interestingly, these bypass only work for GET requests, but not POST requests. I have listed some of the endpoints below.
Impact
Display names of site authors.
Step-by-step Reproduction Instructions
- https://████████/wp-json/wp/v2/users (403 Forbidden) -> https://██████████/wp-json/wp/v2//users (200 OK)
- https://██████/wp-login.php (403 Forbidden) -> https://██████/wp-login.php/ (200 OK) (Unfortunately POST requests are still blocked with this bypass, so testing passwords isn't possible)
- https://█████/wp-login.php?action=lostpassword (403 Forbidden) -> https://███████/wp-login.php/?action=lostpassword (200 OK) (POST requests kinda worked with this endpoint, it showed "Access Denied" but the message came from WordPress and not the WAF/web server, which meant the request went through)
Product, Version, and Configuration (If applicable)
WordPress
Suggested Mitigation/Remediation Actions
Fix the firewall rules.
Proof of Concept
Output from wp-json/wp/v2//users
[{"id":4,"name":"████","url":"http:\/\/cloudlakellc.com","description":"","link":"https:\/\/██████████\/author\/█████████\/","slug":"██████████","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/█████████?s=24&d=mm&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/█████?s=48&d=mm&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/███?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"https:\/\/████████\/wp-json\/wp\/v2\/users\/4"}],"collection":[{"href":"https:\/\/█████████\/wp-json\/wp\/v2\/users"}]}},{"id":6,"name":"█████████","url":"","description":"","link":"https:\/\/█████\/author\/███\/","slug":"███","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/████?s=24&d=mm&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/████████?s=48&d=mm&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/████████?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"https:\/\/███████\/wp-json\/wp\/v2\/users\/6"}],"collection":[{"href":"https:\/\/████████\/wp-json\/wp\/v2\/users"}]}},{"id":2,"name":"████████","url":"","description":"","link":"https:\/\/█████\/author\/████████\/","slug":"███████","avatar_urls":{"24":"https:\/\/secure.gravatar.com\/avatar\/█████?s=24&d=mm&r=g","48":"https:\/\/secure.gravatar.com\/avatar\/█████████?s=48&d=mm&r=g","96":"https:\/\/secure.gravatar.com\/avatar\/███?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"https:\/\/████\/wp-json\/wp\/v2\/users\/2"}],"collection":[{"href":"https:\/\/██████████\/wp-json\/wp\/v2\/users"}]}}]
Impact
Obtain details about the site authors.
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 firewall matched blocked paths by exact string rather than normalising the URL, so a trailing or doubled slash produced a path it did not recognise as protected.
Impact
The bypass exposed the display names and author details of site users, but POST requests remained blocked, so password guessing against the login page was not possible.
What the attacker needed
None
The fix
The firewall rules should be fixed to close the slash-based bypass.
How it was found
- Request the users API endpoint and observe it is forbidden.
- Add an extra slash in the path and request it again to get a successful response listing users.
- Request the login page and observe it is forbidden.
- Add a trailing slash to the login page path to get a successful response.
- Request the lost-password endpoint and observe it is forbidden.
- Add a trailing slash to that endpoint and see the request reach WordPress rather than the firewall.
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.
A firewall here is a filter in front of the website that blocks requests to certain pages, such as the login screen or a list of users. The site treated a request with an extra slash in the path as a different address, so the filter did not match it and let it through. That let the researcher see a list of the site's authors that was supposed to be hidden.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.