A Critical 403 Bypass Vulnerability Lead to a Staging Environment with User Enumeration
A 403 Forbidden restriction on a hidden subdomain could be bypassed using a crafted URL, revealing a staging environment. The attacker then enumerated users via an exposed endpoint, accessing sensitive user data.
Published on ay0ub-n0uri.medium.com
Today, I’m excited to share a bug I discovered in a public bug bounty program. This vulnerability involved a 403 bypass that led to access to a staging environment where I could enumerate users.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the access control for the staging environment was enforced only on the normal URL path, and the crafted path bypassed the check due to improper path normalisation or routing.
Impact
An attacker could access a staging environment and enumerate users, potentially exposing sensitive user information.
What the attacker needed
None
How it was found
- Discovered a hidden subdomain go.target.com that returned 403 Forbidden.
- Tried a 403 bypass tool but it failed.
- Built a custom tool using Radamsa to generate more payloads.
- Ran the tool and found a payload that returned 200 OK.
- Used the generated curl command to access the staging environment.
- Fuzzed the staging environment and found a /users endpoint listing users.
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 write-up has not been written yet. The Original tab links to the source.
A 403 error means the server refuses to show a page. The researcher found a trick to make the server ignore that refusal and show a hidden test version of the site. That test site accidentally listed all user accounts, which should have been private.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.