Skip to content
Open redirect Disclosed report Beginner

Improper Validation of the Referrer header leading to Open URL Redirection

The Referer header on a Cloudflare challenge endpoint was not validated, so a crafted request caused a redirect to an attacker-controlled domain. An attacker could trick a logged-in user into clicking a link that redirects them to a malicious site, potentially exposing session cookies.

anshuman_bh Follow

Originally disclosed on HackerOne

  • Disclosed after 31 days

Using a proxy tool such as Burp, set the Target as https://coinbase.com. Then, send the following request:

GET /cdn-cgi/l/chk_jschl HTTP/1.1 Host: coinbase.com Referer: http://attacker.com Content-Length: 2

Notice the attacker's domain in the Referrer header. This value is not being validated on the server side and as a result, the user is redirected to http://www.attacker.com

Attack Scenario:

  1. An attacker hosts his own website www.attacker.com.
  2. He has a link on this website https://coinbase.com/cdn-cgi/l/chk_jschl.
  3. The attacker tricks a legitimate coinbase user to click on this link.
  4. When the user clicks on the link, he gets redirected to the attacker controlled website.
  5. Now, if the coinbase user is authenticated to the coinbase website in the same browser, all the cookies from the browser are sent to the attacker controlled website.
  6. The attacker now has access to the user's session cookies which he can use to impersonate the coinbase user and take complete control over the user's account.

Attachments

Screen_Shot_2014-03-29_at_7.51.28_PM.png
Screen_Shot_2014-03-29_at_7.51.28_PM.png From the original on HackerOne
Screen_Shot_2014-03-29_at_7.51.42_PM.png
Screen_Shot_2014-03-29_at_7.51.42_PM.png

The original report as published on HackerOne, by anshuman_bh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server used the Referer header value directly in a redirect without validating that it pointed to a trusted domain.

Impact

The report claims a logged-in user could be redirected to a malicious site, exposing session cookies and enabling account takeover.

What the attacker needed

Victim clicks a crafted link; victim is logged in to the target site

How it was found

  1. Set the target to coinbase.com in a proxy tool.
  2. Send a request to the challenge endpoint with a Referer header pointing to an attacker domain.
  3. Observe that the server redirects the user to the attacker 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 report has not been written yet. The Original tab links to the source.

When you visit a website, your browser sometimes sends a 'Referer' header that tells the site where you came from. This report shows that a specific page on coinbase.com used that header to decide where to send you next, without checking if it was safe. So an attacker could make the page send you to their own website, and if you were logged in, your browser might share your login cookies with them.

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.

More by anshuman_bh

View all

18 more disclosed reports, best first.

More from Coinbase

View all

The newest disclosed reports for this program.

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.