9 ms·
uBlock, I exfiltrate: exploiting ad blockers with CSS
- ck2 5y ago1.32.4 is the last "legacy" version of ublock is it vulnerable to this as it won't likely get an update?
- sharmin123 5y agoLearn Ethical Hacking And Save The World: Hacking Benefits: https://www.hackerslist.co/learn-ethical-hacking-and-save-the-world-hacking-benefits/ https://www.hackerslist.co/learn-ethical-hacking-and-save-th...
- LinuxBender 5y agoWas this also tested against the CSS Exfil Protection addon? [1][2] [1] - https://www.mike-gualtieri.com/css-exfil-vulnerability-tester https://www.mike-gualtieri.com/css-exfil-vulnerability-teste... [2] - https://addons.mozilla.org/en-US/firefox/addon/css-exfil-protection/ https://addons.mozilla.org/en-US/firefox/addon/css-exfil-pro...
- tux1968 5y agoNot trying to be snide or make an accusation at all, but how is anyone supposed to know if this is actual protection or is a socially engineered exploit itself? When you go to the Firefox addon page it has a warning saying that Mozilla does not monitor it and that you should trust it yourself before using it.
- paulryanrogers 5y agoMozilla added that warning for all add-ons unless developers pay to have theirs recommended and further vetted. IIRC Mozilla still does some sanity checks and validation for all uploads.
- staticassertion 5y agoInteresting - the attack relies on a compromised rule list, but that doesn't seem super hard. I have no idea what goes into building one of those, where they're sourced from, etc.
- dewey 5y agoYou can select which "lists" you want to subscribe to when setting up the extension. One of the popular ones would be EasyList: https://github.com/easylist https://github.com/easylist Compromising one of these would be as "simple" as getting a PR merged that wasn't reviewed carefully.
- shadytrees 5y ago> Compromising one of these would be as "simple" as getting a PR merged that wasn't reviewed carefully. I think it's less scary than this. A hypothetical PR would have to contain all the keylogger rules. The person who approves the PR would have to be in cahoots. I hope the filter-list repository owners have 2FA turned on...
- dewey 5y ago> The person who approves the PR would have to be in cahoots. Not really unfortunately: https://www.theverge.com/2021/4/30/22410164/linux-kernel-university-of-minnesota-banned-open-source https://www.theverge.com/2021/4/30/22410164/linux-kernel-uni...
- staticassertion 5y agoI wouldn't be surprised if, given the volume of new domains to be blocked (like for a malware list), there's some automation involved. And since malicious domains can be absolutely nutty it seems particularly hard to manually review for an attack like this. Ultimately I suspect that getting fuzzing integrated, lots of testing, etc, would be wise. It would also make sense to limit the lists you subscribe to - there's not really a ton of reason, in my opinion, to subscribe to more than a basic list.
- _wldu 5y agoWeb security is completely broken. We have super complex web browsers (written in unsafe languages such as C++) that we try to secure by installing 'add-ons' and those have vulnerabilities that can steal our data. Who thinks this is a good idea for online banking?
- morrisdoris 5y agoIt's time to retire javascript and css and any Turing complete scripting/styling, running random code from random websites is just never gonna be safe.
- kyrra 5y agoMay as well have the web just be a series of PDFs, I've never heard of exploits in those! /s Even just rendering engines can have bugs that can be exploited by specially crafted content. While it reduces the attack surface, it would be a massive hit to usability of web pages.
- catlikesshrimp 5y agoYou should have specified somewhere that PDFs are also vulnerable. It is not common sense. On that, PDFs run scripts and use graphic libraries, they are not text documents.
- kyrra 5y agoagreed, it was a bad example. You can fill them out like forms and the like.
- yjftsjthsd-h 5y agoPDFs can have full-on javascript and everything, too
- seanw444 5y agoGemini ¯\_(ツ)_/¯
- josefx 5y ago> This works because document.querySelector tolerates malformed selectors Of course it does. Is there a single web API that doesn't intentionally enable exploit smuggling by allowing malformed input?
- mads_ravn 5y agoI personally blame the robustness principle[1], which I think explains a lot of the accidental complexity in web programming. [1] https://en.m.wikipedia.org/wiki/Robustness_principle https://en.m.wikipedia.org/wiki/Robustness_principle
- derf_ 5y agohttps://datatracker.ietf.org/doc/html/draft-iab-protocol-maintenance https://datatracker.ietf.org/doc/html/draft-iab-protocol-mai...
- Spivak 5y agoOver the years I've switched my philosophy to "be paranoid about what you accept, normalize inputs, randomize outputs, and fail loud and on purpose." Make it so that if the caller/client works at all then it must work correctly. Force them to handle errors and retry on things that might fail, values that might change, and if the result is something that must be parsed send it back in varying formats so they have to parse it.
- BiteCode_dev 5y agoI understand the benefit of randomize output, but that's very costly.
- Anthony-G 5y agoAgreed. That’s why I liked XHTML when it came out – it’s hard to believe that’s more than two decades ago! While HTML5 had lots of goodies, I liked the rigour that XHTML imposed on web authors.
- 5y ago
- a13n 5y agoDid anyone go through the existing lists to see if someone had already been using this vulnerability? Didn't see anything about this in the write up... seems like it should be a part of responsible disclosure.
- dkonofalski 5y agoI'm not sure I follow how this is useful. How does the CSS injection send that information back to anyone to make this useful? The most likely scenario is the font loading that they mention but that doesn't actually give the bad actor any useful information except for the characters used (without the order or number of times they're used) and potentially the site they're being entered on. This might work for very basic info/passwords but seems mostly useless unless someone has a way of then brute-forcing that information. I feel like there has to be something I'm missing here...
- yorwba 5y ago> that doesn't actually give the bad actor any useful information except for the characters used (without the order or number of times they're used) Keep reading until the part where they use first-line to filter which part of the text to apply the font to and CSS animations to vary how long that first line is.
- SavantIdiot 5y agoAnd the animation part to steal dupes. This guy is insane. I'm scared of everything now. If I was the author of Ublock Origin I probably would have just thrown up my hands and switched to pottery.
- Ayesh 5y agoRaymond Hill (author of uBlock Origin) is doing a fantastic work at the addon on both technical level and the politics, which an AdBlock addon tends to get bashed at often. Even the smartest of us make mistakes. The right thing to do is fix, learn, and move on. The author of the addon triaged and fixed it in just five days, which is super impressive.
- dkonofalski 5y agoI did. That still only tells you the first time those characters are used forwards and backwards. It's unhelpful for email addresses where the likelihood of repeated characters goes up a lot and for any passwords where there are multiples of the same character. It's still a security issue but it doesn't seem like one that would be very practical.
- ziddoap 5y agoAlthough not having an easy path for security researchers to report vulnerabilities is not exactly great, what is commendable here is the speed at which these were addressed. >2021-11-03 11:51 - I reported my bypass to uBlock Origin >2021-11-03 12:52 - uBlock Origin patched my bypass on master >2021-11-08 13:25 - Reported bug in cosmetic filter >2021-11-08 14:19 - uBlock Origin patched my cosmetic bypass >2021-11-08 15:35 - I bypassed the patch without using comments >2021-11-08 16:18 - uBlock Origin patched the cosmetic filter bypass 61 minutes, 54 minutes, 43 minutes. Pretty quick!
- deleted 5y ago[deleted]
- Causality1 5y agoCan we put these people in charge of Windows Update?
- nix23 5y agoNo i don't want every 2 minutes a reboot update ;)
- netizen-936824 5y agoThat's super impressive imo, and exactly what I would hope to see on a security product
- matheusmoreira 5y agoLet's take a moment to thank gorhill for his work! Thank you!
- gaius_baltar 5y agoI have a long list of "thank you"s for gorhill. This guy is responsible for keeping me mentally sane in today's web.
- 5y ago
- golemiprague 5y agoI don't mind seeing ads, in some way I even want it so I can support whoever supply whatever content I am consuming. What I don't like is the tracking of everything I do. What is the best extension to block the tracking but not the ads?
- thehappypm 5y agoFunny that I had not considered this particular attack vector before. Not only do you have to trust an extension to not be malware, you also have to trust that a good extension itself is not being exploited.
- SAI_Peregrinus 5y agoThis is essentially the same problem seen with various antivirus software implementations: uBlock helps prevent malicious ads from running, but (by nature) has access to run on just about any site and itself has to handle potentially malicious code. So it's a tempting target for attack, just like AV software is a tempting target for attack.
- Ayesh 5y agoI wonder if a strict CSP employed by individual web sites could prevent it? There really shouldn't be any excuses to not use a CSP rule to allow-list origins for fonts, for example.
- quyleanh 5y agoI had used uBlock Origin since 2016, but I switched to Adguard last year, when I had problem with YouTube ads on Chrome. There is no problem until now.
- knodi123 5y agoweird, I haven't ever had a problem with youtube, nor seen a youtube ad while using uBlock for years. But somehow I've completely boogered up imgur, I just use a different browser for that site because I can't figure out which of my various blockers broke it.
- vanilla_nut 5y agoImgur has been broken for me lately, too. I suspect it's my pi hole, since it's effecting all of my devices.
- Jach 5y agoOn Chrome/Chromium I can routinely expose myself to youtube ads if I have a video open, close the browser, and re-open with that tab loaded first. I figured it was some conflict in initialization of extensions and the page, but good to know a different extension might not have the problem. Firefox doesn't, which I use for everything but youtube livestreams anyway.
- dikei 5y agoIt's a known issue https://github.com/gorhill/uBlock/wiki/uBlock-Origin-works-best-on-Firefox#browser-launch https://github.com/gorhill/uBlock/wiki/uBlock-Origin-works-b...