HexBrain

Brave Software · Report #1579374

Browser is not following proper flow for redirection cause open redirect

Validstatus
highseverity
41upvotes
30 Jun 2022disclosed

How it was found

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:

  1. Open brave browser in windows
  2. Intercept the requests
  3. Go to https://l.facebook.com/l.php?u=https://test.facebook-whitehat.com/ and you will notice that it directly generating a request https://test.facebook-whitehat.com/ not to l.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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original