Skip to content
Open redirect Disclosed report Beginner

Open redirect found on account.brave.com

The account.brave.com site accepted a crafted URL path and redirected the browser to an external domain. An attacker could use this to make phishing links appear to originate from the trusted Brave domain.

tabaahi Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 10 months

What is open redirect

A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks. An http parameter may contain a URL value and could cause the web application to redirect the request to the specified URL. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts have a more trustworthy appearance.

Step to reproduce

visit https://account.brave.com//example.com/%2F.. you will redirect to example.com

POC

bandicam_2021-09-13_17-18-26-482.mp4 From the original on HackerOne

Fix / prevention

You can prevent redirects to other domains by checking the URL being passed to the redirect function. Make sure all redirect URLs are relative paths – i.e. they start with a single / character. (Note that URLs starting with // will be interpreted by the browser as a protocol agnostic, absolute URL – so they should be rejected too.)

If you do need to perform external redirects, consider whitelisting the individual sites that you permit redirects to.

Impact

One of the main uses for this vulnerability is to make phishing attacks more credible and effective. When an Open Redirect is used in a phishing attack, the victim receives an email that looks legitimate with a link that points to a correct and expected domain.

Let me know if you have any questions.

thanks & best regards

The original report as published on HackerOne, by tabaahi. 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 redirect logic trusted a user-controlled path and did not reject values that resolve to an external host.

Impact

An attacker could craft a link on the trusted Brave domain that redirects victims to a phishing site, making the scam appear more credible.

What the attacker needed

Victim clicks a crafted link

The fix

The redirect should only allow relative paths starting with a single slash, reject protocol-relative URLs, and optionally whitelist permitted external domains.

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.

An open redirect is when a website takes a link from the address bar and sends you to another site without checking it. Here, adding a special path made the Brave account page forward visitors to an attacker-chosen site. Because the link starts with the real Brave domain, people may trust it more and fall for a phishing scam.

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 tabaahi

View all

1 more disclosed report, best first.

More from Brave Software

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.