Skip to content
Open redirect Write-up Intermediate

Story of bypassing Referer Header to make open redirect

An open redirect endpoint was protected by a Referer header check, but the check could be bypassed by removing the Referer header entirely. The attacker could then craft a URL that redirected to an arbitrary domain, though the exact impact is limited to redirection.

Mmohammed Eldeeb Follow

Published on medium.com

i was testing private program and i was working on one of this program subdomains let’s say subdomain.domain.com

Mohammed Eldeeb, 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

Impact

An attacker could craft a link that redirects users to a malicious site, potentially used for phishing, though the report does not demonstrate further exploitation.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Discover the redirect endpoint via directory brute-forcing.
  2. Observe that changing the target domain is blocked by a Referer header check.
  3. Remove the Referer header from the request and see the redirect succeed.
  4. Attempt to modify the URL and receive an invalid link message.
  5. Insert a single special character to bypass the URL validation and achieve redirection to an arbitrary domain.

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 had a feature that redirected users to another site, but it tried to block abuse by checking the 'Referer' header (which tells where the request came from). The tester found that simply removing that header made the check pass, allowing redirection to any site. This is called an open redirect.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.