Importance of burp history analysis to bypass 403
An endpoint returned 403 when accessed directly, but a specific Referer header from a different subdomain allowed access with 200 OK. An attacker could bypass access controls to reach restricted endpoints.
Published on infosecwriteups.com
When it comes to bug hunting, directory brute force is a necessary part, if you want to cover all the bases. And, at times, depending on bug bounty programs’ policy, or simply how the servers are configured, things like captcha or 429, or just blocking your ip completely will happen.
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 server's access control logic only allowed requests whose Referer header matched a specific subdomain, rather than properly authenticating the user.
What the attacker needed
Knowledge of a specific subdomain; ability to set custom headers
How it was found
- Run ffuf on a subdomain and note endpoints returning 403.
- Observe Burp history for a request to a familiar endpoint that returned 200 OK.
- Copy the URL into the browser and get 403, confirming the discrepancy.
- Send the request from Burp history to Repeater and confirm 200 OK.
- Remove the Referer header and observe 403, then try different subdomains in Referer and still get 403.
- Set Referer to the specific subdomain seen in history and get 200 OK.
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 website sometimes checks the 'Referer' header, which tells it which page you came from, to decide if you are allowed to see a page. Here, the check was too strict: only one particular subdomain was accepted, so anyone who set that header could get in. This is like a bouncer who only checks the name on your invitation, not who you are.
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.