window.history.state can be accessed by a cross-origin URL, allowing tracking of total browsing history
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
People
(Reporter: threatlab.indonesia, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Firefox for Android
Steps to reproduce:
VULNERABILITY DETAILS
The window.history.state property stores information about the current state of the tab, including the URL, title, and window size. If an attacker can access this property, they can track a user's total browsing history.
In my POC you can see that maybe Firefox has taken precautions for several functions so that attackers don't get any URL information that has been accessed in one tab that has been overwritten by the attacker's URL, but it seems that Firefox hasn't patched the total history that has been taken.
Recommended fix:
The window.history.state property must be made inaccessible to cross-origin URLs. This can be done by using sandboxes or other security mechanisms to limit access to the property.
REPRODUCTION CASE:
- Make sure there are other domains in the tab or you can try creating a new tab, alternately opening amazon.com, google.com, and apple.com.
- then open https://bug.omapip.my.id/tester.html
- click the button
- the result will save on https://bug.omapip.my.id/result.txt
Because the video size is too large to exceed Firefox requirements, so please access the video on my gdrive below for POC:
https://drive.google.com/file/d/1mOvrj_LOFOT0xdviPrwAJH369ZmT3TkS/view?usp=sharing
Actual results:
window.history.state can be accessed by a cross-origin URL, allowing tracking of total browsing history
Expected results:
The window.history.state property must be made inaccessible to cross-origin URLs. This can be done by using sandboxes or other security mechanisms to limit access to the property.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
This is a known issue with the specs (or a constellation of known issues, really).
Updated•1 year ago
|
Description
•