Skip to content
Access control Write-up Intermediate

I Found a $10,000 Bug by Bypassing a 403 Forbidden Page

The intranet subdomain accepted a session cookie issued by the external portal, so a logged-in external user could reach the internal dashboard. An attacker with a basic account could read internal directories and documents and modify user roles and records.

medium.com

Published on medium.com

Hello! In this write-up,I’ll walk you through an authorization bypass that earned a $10,000 bug bounty.

Codi, 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 control logic trusted any valid session identifier without checking that the session belonged to the intranet domain or that the user had permission there.

Impact

An external user with a basic account could read internal directories and documents and modify roles and records, though the text does not show whether any defence limited this.

What the attacker needed

A basic account on the external portal; ability to intercept and edit requests

The fix

Authorization should be checked on the server for each resource and domain, verifying that the session's user has explicit permission rather than only that a cookie is present.

How it was found

  1. Log in to the external portal and visit the intranet subdomain, which returns 403 Forbidden.
  2. Compare the session cookies set for the extranet and intranet domains and note they differ.
  3. Intercept a request to the intranet dashboard and replace its session cookie with the extranet session token.
  4. Forward the request and observe a 200 OK with the full intranet dashboard.

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 session cookie is a small token your browser sends to prove you are logged in. Here the internal site checked only that a cookie looked valid, not which site had issued it, so a cookie from the public site opened the internal one. That let an ordinary user see and change internal data.

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.