user.js icon indicating copy to clipboard operation
user.js copied to clipboard

uMatrix 0.9.3.6 user-agent leak

Open kaliostro2 opened this issue 9 years ago • 5 comments

Just accidentally discovered the leak a real user-agent for which spoofing is responsible uMatrix.

In order to reproduce the leak it is necessary:

1: Go to https://mega.nz 2: Open about:config in new tab and change dom.storage.enabled to false 3: Go back to the tab with https://mega.nz and you will see a window with an error and your real user-agent.

kaliostro2 avatar Apr 26 '17 17:04 kaliostro2

Do you actually logged into mega before? Do you have cookies stored from that site?

Atavic avatar Apr 26 '17 18:04 Atavic

No.

gorhill сonfirmed the existence of a issue.

The site's Content Security Policy does not allow inline script tags, this means uMatrix inline script tag to spoof window.navigator is not allowed to execute.

Unexpectedly, uMatrix's inline script works with Nightly. It's unclear whether this is by design or not, maybe Nightly allows inline script injected by extensions? (would make sense since they are trusted by the user).

Firefox 55 does not have this issue. Firefox 54 and below are affected.

kaliostro2 avatar Apr 26 '17 19:04 kaliostro2

gorhill released a revised version of uMatrix (1.0.1b0) on dev channel.

kaliostro2 avatar Apr 26 '17 20:04 kaliostro2

@kaliostro2, very good report, thanks mate!

@Thorin-Oakenpants, why is this closed? It's not fixed yet is it? And just because we recommend against spoofing UA, there's still a bug in one of the main addons we recommend. This should remain open until it's fully fixed IMO. It may even be possible for a site to completely disable uBlock element-hiding if the CSP prevents inline css for example.

earthlng avatar Apr 28 '17 13:04 earthlng

Close to what @earthlng said: https://github.com/gorhill/uBlock/issues/2240#issuecomment-267057840

Atavic avatar Jun 03 '17 16:06 Atavic