Skip to content
Access control Write-up Beginner

How a single backslash got me £1000 bounty from a bug bounty pro

A file on the main domain returned a 403 forbidden response, but appending a slash after the .php extension caused the server to return a 200 response instead. The author reports this as critical to the company and received a bounty, though the text does not describe what the file actually exposed.

Sairaj Thorat Follow

Published on medium.com

Hi I am Sairaj Dattu Thorat and I’m in 11th grade right now.. and few months ago I started my bug bounty journey and I wanted to make this moment memorable today that is why, I’m writing this article today.

Sairaj Thorat, on medium.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 rule matched the exact file path but not the same path with a trailing slash, so the server served the file without applying the restriction.

Impact

The author claims the exposed file was very critical to the company, but the text does not say what the file contained or what an attacker could actually do with it.

What the attacker needed

A file that returns 403; guessing a trailing-slash variant

How it was found

  1. Find a file on the main domain that returns a 403 response.
  2. Append a slash after the .php extension in the request.
  3. Observe that the server now returns a 200 response.

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 web server sometimes blocks a page with a 403 'forbidden' message. Here, adding a slash to the end of the file name made the server treat the request differently and hand back the page anyway. That means the block could be stepped around, which is called a 403 bypass.

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.