Skip to content
Access control Write-up Intermediate

**My 2nd bounty : Referer-based access control + Response manipulation**

The email verification process relied solely on the Referer header to grant access to the merchant registration portal, so an attacker could use a valid verification link from another account to bypass the check. By also manipulating the server's redirect response into a success response, the attacker gained access to the restricted registration page.

Torious Follow

Published on adebayosec.medium.com

Hey there fellow hunters! Happy to share with you how I got my 2nd bounty worth $200, and with that being said, let’s get right to it.

Torious, on adebayosec.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 server made an access-control decision based only on the Referer header, without tying the verification to the logged-in user's session.

Impact

An attacker could bypass email verification and access the merchant business registration portal without verifying their own email, potentially enabling unauthorised merchant account creation.

What the attacker needed

A free account; a valid verification link from another account; ability to intercept and modify HTTP responses

How it was found

  1. Create two accounts, one as attacker and one as victim, and complete the normal signup process for the victim to observe the flow.
  2. Obtain the email verification link sent to the victim's email.
  3. While logged in as the attacker, request the merchant business registration portal and set the Referer header to the victim's valid verification link.
  4. Intercept the server's 302 redirect response, change it to 200 OK, and remove the Location header.
  5. Forward the modified response to access the merchant registration page.

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.

When you sign up, the site may check that you came from a specific page by looking at the 'Referer' header, which browsers send to say where a link was clicked from. Here, the site trusted that header alone to decide if your email was verified, so someone could fake it using a verification link from a different account. The attacker also changed the server's 'redirect' reply into a 'success' reply to see the protected page.

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.