application/x-brave-tab should not be readable.
A dragged tab object (application/x-brave-tab) could be read by an attacker-controlled page when a user drags a tab into it, leaking the tab's browsing history. This allowed extraction of a victim's Facebook username from the history URLs.
- Triaged in 8 days
- Fixed in 32 days
- Paid in 32 days
- Disclosed after 3 months
Summary:
It is possible to read a dragged tab object if user is coerced into drag and dropping it into attacker controlled page. This is bad because tab history is mentioned within the object, thus information leaks are possible through a trick.
Products affected:
Brave: 0.18.14 rev: ad92d029e184c4cff01b2e9f4916725ba675e3c8 Muon: 4.3.6 libchromiumcontent: 60.0.3112.78 V8: 6.0.286.44 Node.js: 7.9.0 Update Channel: dev OS Platform: Microsoft Windows OS Release: 10.0.14393 OS Architecture: x64
Steps To Reproduce:
- Open PoC and click on button.
- Popup should appear loading facebook and then should direct to a dummy page
- Attempt to drag and drop the newly opened windows tab into the big 'O' under the button. (as if you are trying to move the tab but instead you drop it into the O)
- We can successfully read 'x-brave-tab' object including history.
As I mentioned before, so much information is available in the output, specifically I want to point to the history section, where we can extract victims facebook name by reading URL after redirect. This is done by opening a popup pointing to 'https://www.facebook.com/me' which will instantly redirect to 'https://www.facebook.com/{your name}' and then we redirect into a dummy page in order to create a history object.
Given that the user is not dragging directly from facebook.com then it is not the same as having a user copy paste or drag n drop their facebook URL. This is pretty much completely done within attacker controlled website.
Supporting Material/References:
PoC attached. Also, I wonder if something worse could happen messing with this object. I haven't been able to produce my own custom tabs yet, but if that is even theoretically possible then we 'theoretically' also have control of all the variables mentioned in the tab object.
Here is a sample of the output:
{"showOnRight":false,"security":{"isSecure":false,"runInsecureContent":false},"src":"about:blank","lastAccessedTime":1502356944847,"computedThemeColor":null,"guestInstanceId":44,"adblock":{},"partition":"persist:default","findDetail":{"searchString":"","caseSensitivity":false},"noScript":{},"endLoadTime":1502356942486,"navbar":{"urlbar":{"location":"http://localhost/wut.html","suggestions":{"selectedIndex":null,"searchResults":[],"suggestionList":null,"shouldRender":false},"selected":false,"focused":false,"active":false}},"trackingProtection":{},"tabId":322,"zoomLevel":0,"breakpoint":"default","partitionNumber":0,"history":["https://www.facebook.com/abdulrahman.alqabandi.3","https://www.facebook.com/abdulrahman.alqabandi.3","http://localhost/wut.html"],"audioMuted":false,"startLoadTime":1502356941347,"provisionalLocation":"https://www.facebook.com/abdulrahman.alqabandi.3","location":"http://localhost/wut.html","fingerprintingProtection":{},"httpsEverywhere":{},"audioPlaybackActive":false,"disposition":"new-popup","title":"localhost/wut.html","searchDetail":null,"icon":null,"isPrivate":false,"openerTabId":5,"parentFrameKey":null,"loading":false,"hrefPreview":"","unloaded":false,"key":1}
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
Impact
An attacker could learn a victim's Facebook username and other browsing history from the leaked tab object, though the attack requires the user to drag a tab onto the attacker's page.
What the attacker needed
Victim uses Brave browser; victim drags a tab onto attacker page
How it was found
- Open the proof-of-concept page and click the button.
- A popup loads Facebook and then redirects to a dummy page.
- Drag the newly opened tab and drop it onto the large 'O' under the button.
- The attacker page reads the 'x-brave-tab' object, including its history.
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 drag a browser tab, the browser shares data about that tab with whatever you drop it on. Here, a malicious website tricked the user into dropping a tab onto it, and the site could then read the tab's history, including private URLs. This is like someone reading your browsing diary just because you moved a tab.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.