Skip to content
Access control Write-up Beginner

403 Forbidden Bypass Leads To Hall Of Fame

A subdomain returned 403 for a sensitive file, but changing the HTTP method from GET to TRACE returned 200 and allowed the file to be downloaded. The file contained nothing sensitive, but the access-control bypass itself was reported.

Tamim Hasan Follow

Published on infosecwriteups.com

Hello hackers. I hope you are well.

Tamim Hasan, on infosecwriteups.com

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 rule only applied to GET requests and did not cover other HTTP methods such as TRACE.

Impact

The method-based access control could be bypassed to download a protected file, but the file contained nothing sensitive, so no data was actually exposed.

What the attacker needed

A subdomain returning 403 for a sensitive path; ability to intercept and modify HTTP requests

How it was found

  1. Find a subdomain that returns 403 for a sensitive path such as .htaccess.
  2. Intercept the request and change the method from GET to POST; it still returns 403.
  3. Change the method from GET to TRACE; the server returns 200.
  4. View the response in the browser, which offers the file for download.

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 understood the request but refused to allow it. Here, the server only checked the usual GET method, so switching to another method called TRACE let the same file be fetched. The file turned out to be empty, so no secret data was exposed, but the protection was still broken.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.