Browser is not following proper flow for redirection cause open redirect
Brave browser was skipping the Facebook link-shim redirector and requesting the destination site directly, so Facebook's malicious-link check was never applied. An attacker could get Brave users to reach a link Facebook would otherwise have blocked or warned about.
- Triaged in 13 hours
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 38 days
Summary:
Brave browser is not following proper flow for redirection. Browser is directly redirecting to the site that is present in redirect parameter without confirming from the main site server.
I have found this vulnerability and this is affecting Facebook. Facebook use l.facebook.com/l.php?u=<redirect_site> for redirection and when server gets the request it check whether the redirect_site is in the list of there malicious(linkshim) list or not. If not then Facebook redirect it properly.
But when we try to go to a site like https://l.facebook.com/l.php?u=https://test.facebook-whitehat.com/ then brave browser is directly requesting to https://test.facebook-whitehat.com/ (a domain resticted by facebook which can be used for testing prepose) without asking Facebook server whether should I redirect or not. But other browser are properly following the flow.
Products affected:
Windows 11, Version 1.38.119 Chromium: 101.0.4951.67 (Official Build) (64-bit)
Steps To Reproduce:
- Open brave browser in windows
- Intercept the requests
- Go to
https://l.facebook.com/l.php?u=https://test.facebook-whitehat.com/and you will notice that it directly generating a requesthttps://test.facebook-whitehat.com/not tol.facebook.com
Supporting Material/References:
I also soon how other browser is responding and how brave is responder. POC video attached
Impact
Brave has seen a massive growth in 2021 quarter and Facebook is the one of the largest used social media. Due to this vulnerability users that are using Brave browser are directly affected which will affect brave reputation as only brave browser users are getting affect. As well this vulnerability in brave browser is affecting facebook's security also.
Attachments
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 browser navigates straight to the destination in the redirect parameter instead of going through the shim server.
Impact
Only Brave users were affected, and the report claims this bypassed Facebook's link checking, though no concrete harm beyond the skipped check is shown.
What the attacker needed
Using the Brave browser; victim clicks a crafted link-shim URL
How it was found
- Open Brave on Windows and intercept requests.
- Visit the Facebook link-shim URL with a test destination in the redirect parameter.
- Observe that the browser requests the destination directly instead of the shim host.
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.
A link shim is a page on the main site that checks a destination link before sending you there. The report says Brave jumped straight to the destination instead of asking the shim first, so the safety check was skipped. Other browsers asked the shim first, as intended.
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.