675 points · by tech234a · 3y ago · 328 comments
Firefox—my daily driver—still supports the "main" uBlock Origin (and I'm a somewhat heavy user of features unavailable in Lite like custom filters), but I had been waiting for Lite to be available and immediately went ahead and replaced uBlock Origin with uBlock Origin Lite.
The security win can't be understated: with its permission-less design (enabled by MV3) I am down to zero third-party developers that can get compromised and silently push an update that compromises all my web sessions. Sure, attackers could still get into Mozilla, Apple (as I run macOS), or cause a backdoored update to be pushed via Homebrew (how I install unsandboxed applications when no web app is available, which thanks to the likes of WebUSB is getting less common), but unsandboxed browser extensions were clearly the lowest hanging fruit, so this update (and MV3) significantly raised my security posture (and transitively that of projects I have access to, and that of their users).
It's my understanding that because uBlock Origin is a "recommended extension", it must undergo a formal code review each time a new update is published. A malicious update would not face zero obstacles.
https://support.mozilla.org/en-US/kb/recommended-extensions-...
You can just decide for each case the tradeoff between advanced blocking and security.
The only apparent upside to this version is if you don't trust Raymond Hill to refrain from spying on your browsing sessions via his add-on. By every other metric this seems like a downgrade.
Say I open HN on my morning coffee and open 5 links in new tabs. They don't have to be to sites I've opened before. I will be tracked until i go to each tab and add it to uBlock Origin.
How is that an improvement?
So human review really isn't the real difference on firefox's side. Because it is required since day one
-- https://support.mozilla.org/en-US/kb/tips-assessing-safety-e...
*May* is important here. That is also what I remembered changing years ago.
Manifestv3 will have negligible improvements on potential security risks and will significantly decrease overall security.
Yah, probably not a lot of HN users falling for it, but I was constantly surprised by the demographic. I’d regularly see smart, accomplished people get bamboozled by ads. It’s wild.
MV3 is safer, but so is running no adblocker at all. There is a tradeoff. I get much more ads on Safari+AdGuard (iPhone) which uses MV3 or some similar declarative approach, than on Firefox+uBlock-Origin where I get basically none.
I still prefer to trust one extension like uBlock Origin, just like I trust other software packages on my system, and to really fend off all the web tracking nonsense.
a regular user would not have the capability to audit an update. A power user, with entirely too much time on their hands, could of course, but one should not be designing systems based on such niche scenarios.
Essentially, there's an issue of hypocrisy in the threat model and type of user proposed.
But it also comes with costs. The browser is less customizable and further locked down. That reduces possibilities without netting advantages for me. Overall this is security FUD in my opinion. And the negatives can be observed in mobile OS.
Yeah, but is this really a risk for anyone who isn't the sort to have installed Bonzi Buddy back in the day?
That attack surface, compared to that of brew, npm, pip, gem, etc., is miniscule. And browser plugins don't yank in obscure dependencies at install time.
I only run uBlock, and I suspect I'm in the majority here, and my choice of browser is predicated on the availability of a non-crippled ad blocker, because malicious ads are the primary threat.
(as noted by fsckboy): uBlock was the original name for the add-on that subsequently was ethically compromised/"sold out to" advertisers
uBlock Origin is the 2nd version written by the original author (gorhill) and is not compromised.
> However, uBOL allows you to explicitly grant extended permissions on specific sites of your choice so that it can better filter on those sites using cosmetic filtering and scriptlet injections.
Which I would expect allow it to work as well as uBO.
Note that there are still some adblocker workarounds that will foil MV3, such as CNAMEs. uBO will always be more effective than MV3, unless some substantial improvements are made to MV3.
For people not understanding how it works: you can set a CNAME entry on your tracker.domain.tld to bypass all Browser's third-party tracking preventions, and make it look like it's a normal subdomain of your website.
You need to make a CNAME tracker database manually by resolving the reverse entries for known IPs. Usually there is hundreds or thousands of CNAME entries pointing to the same IP address.
The AdGuard team also made a database for this, in case anyone needs it for UBOL [1]
Most, if not all of those trackers use assets that they serve from there (like a tracking pixel gif socket), so I highly doubt that uBOL will catch those; because the cat and mouse game is now in the ad tracker's favor and it is impossible to keep up now. And that was the intended purpose. We now have to play our hand with marked cards.
Can you or someone else elaborate way it would be more secure? I dont quite follow or see the benefit.
Why would you even have autoupdates in the first place if that is your threat model?
How is the FDE story on macOS? Isn't it closed source - how can you tolerate that as a cryptographer? (Not saying Linux is perfect, cryptsetup doesn't have a secure AEAD mode)
It isn't like the average hard disk permits padding oracles and chosen plaintext/ciphertext attacks to be mounted easily, except of course if you are storing disk images in the cloud, but then you're using the wrong tool anyhow - do crypto at the file level where you aren't constrained by sector sizes.
Really, I'd say that 99% of the uses of block device encryption would be better served by using a filesystem that supports encryption natively. The remaining 1% is for block devices that handle the encryption in the hardware.
You can still write a unsandboxed extension with MV3 (and in Firefox it will still be able to intercept requests, while in Chrome it will not be on the network hot path) but the point is that you can also write a permission-less ad-blocker now, which is what I want.
Chrome is deprecating it with v3, Firefox supposedly no.
I guess deferring updates would give me lead time to let others get targeted / detect an issue before it's likely I would get the update. Still, installing the permission-less version is so much simpler and reassuring.
If there is something big enough to warrant quick update, my HN addiction will make sure I find out about it before it is a 1day.
There really isn't a great configuration for browser security rn, is there? The gold standard I think is Qubes, which afaict is not practical.
I was sort of aware but your post clearly reminds me that Firefox extensions are probably my single biggest point of general vulnerability on my phone and computer, given how much is done in browser.
Appreciate your original thoughts either way.
Good on you nonetheless to check one less, but the one still open is much larger, so the fight goes on.
This is a total non-sequitur. The source of all malicious browser extensions is Google, Apple and Mozilla, and none of them have demonstrated any willingness whatsoever to fix the problem, even when a mere grep across their distributed extension base can trivially identify all the various openly advertised trojan SDKs that cause millions of users to be tracked or have their internet connection reused for various shady proxy websites.
You are not speaking for all users and you know it.
I wonder in my lifetime how much bandwidth and energy I've saved if a blocker has blocked around 10% of all data requests.
I'll stick with the full version on Firefox.
As each person's internet usage is different, the percentage of requests blocked seems to me a better measurement than the percentage of the actual data transferred.
In Chrom*, extensions can intercept calls from other extensions, while in Firefox, they can't. If anyone happens to have any insight, please let me know.
EDIT: removed links as I'm being downvoted, not trying to promote, just would love to make it work in FF.
Check the details on the extension page for more information.
Oh, that's too bad. The cosmetic filtering is incredible. I wonder how much I would be impacted by switching to Lite. Guess I'll try one day.
The new method will almost certainly allow site/ad network operators to work around the block filters more easily than they could uBlock Origin.
Anecdotally, I find that blocking ads and associated garbage massively improves page loading, and FF performs fine even with hundreds of tabs open
> reduction in performance
huh?
Also, since it uses manifest v3, how slim are the chances it’ll be ported to safari?
||accounts.google.com/gsi/*$xhr,script,3p
##.ytp-endscreen-content
youtube.com##.ytp-scroll-min.ytp-pause-overlay
youtube.com##.ytp-ce-covering-shadow-top
youtube.com##.ytp-pause-overlay
youtube.com##.ytp-ce-covering-overlay
youtube.com##.ytp-ce-element
! 2021-06-10 https://www.statista.com
statista.com##.vertical-align-content.default.otCenterRounded
instagram.com##.RnEpo
instagram.com##body:style(overflow: auto !important)
! 2023-07-08 https://www.roadandtrack.com
www.roadandtrack.com##journey-modal-meter
YouTube ads are blocked, as are those pervasive sign-in requests from Google.If this extension doesn't use the missing features then porting is as simple as running a single command to generate an Xcode project and then building the extension executable.
I have also been using uBlock Origin heavily since the start.
I'm not sure I fully understand the purpose of this. If this is a Manifest V3 thing, I thought Mozilla wasn't adopting it ... so why would uBlock need to adopt it on Firefox?
I'm clearly missing something.
What seems to have happened here, is that uBO decided that, since they now have a declarative version for Chrome, they may as well release it for FF also (but with a few improvements, apparently).
Wouldn't it be more ethical to not visit ad supported websites in the first place? Instead of removing the source of their income while still consuming their content?
Someone should make an extension "SiteBlock Origin": Everytime it detects the presence of an ad, the whole website gets blocked, not just the ad. That would be ethically consistent.
The ethical principles written clearly by World Wide Web Consortium are for users, NOT for websites:
> 2.12 People should be able to render web content as they want
> People must be able to change web pages according to their needs. For example, people should be able to install style sheets, assistive browser extensions, and blockers of unwanted content or scripts or auto-played videos. We will build features and write specifications that respect peoples' agency, and will create user agents to represent those preferences on the web user's behalf.
https://www.w3.org/TR/ethical-web-principles/#render
---
> Everytime it detects the presence of an ad, the whole website gets blocked, not just the ad. That would be ethically consistent.
By the time the extension knows if there's ads or nots, the trackers/fingerprinting connections are already loaded to users' machines.
Written in literature, it sounds awesome. In practice with real programming, it's awful.
For me, it's ethical. Loading trackers/malicious connections/contents on my own machine is unethical. That's it. I don't run those on your server, why do you run them on my devices?
What I said is simple: there's ethical pricinples standing by users' sides, and nothing for websites.
If you think it's unethical, you do you. I won't participate in arguing about your personal preferences.
Ex. https://support.mozilla.org/en-US/kb/i-found-fake-firefox-up...
I miss getting those banner ads for decreasing my mortgage rates as a 14 year old who doesn't even pay rent yet
All of these are features of larger publishers, unfortunately, which means that smaller publishers suffer more malvertising. So you’re basically just supporting large publishers. Which is definitely better than supporting none, so I still commend you :)
That's fundamentally not how the web works. If you want me to pay for content, you need to get me to agree to pay for content. Just requesting a page, which I have no way beforehand of knowing contains ads, is not me agreeing to pay for the content. If you didn't want me to view the content without paying for it, why did you send me the content?
This is morally equivalent to the fake monk scam[1] in NYC where a fake Buddhist monk gives you a prayer bracelet and then demands that you pay them for it. You don't get to give people things and then demand that they pay for it when that was never agreed upon. Even if the payment is with their attention.
This is all setting aside the ethical blight that advertising, by its very nature, poses in the first place. Advertising is just lying--either literally, or by omission through presenting a one-sided view of products. There is never a case where advertising is ethical.
Note that the NYT has mostly stopped serving up content to people who haven't agreed to pay for it, and they're doing quite well financially lately.
The issue I personally have is:
1) When the Ads themselves contain malware.
2) Eat up all your bandwidth/mobile data.
2.1) Have auto-playing videos / popups.
1) is somewhat rare. But it is something that has happened multiple times with major websites and services.
If I remember correctly, the Washington Post and Yahoo have previously had this issue. Google's Advertisement platform has repeatedly allowed malware to spread via their advertisement system. (Both on Mobile devices, and desktop devices, but usually more focused on mobile devices.)
2) is something I have to deal with everyday on the phone. When on a train filled to the brim, a lot of times the connection speed drops precipitously. In short, I don't have bandwidth to spend on an Ad, especially a video Ad. So I block them all, and usually try not to browse any image or video heavy sites.
2.1) is really just a quality of life thing.
- I ask for a resource - you give it to me - any linked resources (stylesheets, scripts, images etc) are up to me to request
Therefore there is no "ethical" conundrum in blocking ads. The ad industry brought this on themselves by trying to push malware, spam and actively trying to make the web worse.
I remember when AdWords was just a humble bar of contextual text links, absolutely manageable. Not so much the case now.
If the adversaries followed idealized ethics, they would respect DNT header, for one.
That said, actively avoiding those actors who are unethical is commendable. It’s just very difficult to do in practice, since basic communication with eg neighbors, parents, friends are mainly through these channels.
> 2.12 People should be able to render web content as they want
> People must be able to change web pages according to their needs. For example, people should be able to install style sheets, assistive browser extensions, and blockers of unwanted content or scripts or auto-played videos. We will build features and write specifications that respect peoples' agency, and will create user agents to represent those preferences on the web user's behalf.
https://www.w3.org/TR/ethical-web-principles/#render
Don't fall for what ads companies/corporations are trying to shape users' thoughts.
That's pretty much what Medium and many general news sites are doing. I haven't paid for one yet, but I can respect the move if it means they don't need to rely on clickbait to build a customer base.
This could be avoided if websites served ads responsibly: no JS, no animations, no video, no audio, no tracking, no scam merchants, no tricks, no manipulation, no unskippable ads, no dishonesty.
Almost no websites do this, so I have no ethical qualms giving of the ads the banhammer.
Once websites start respecting their users, then we can have this conversation about ethics, but not a second before.
1. sites that don't have any other model. e.g. my favorite game news website is Gematsu, but holy heck is the ads crazy intrusive. On mobile we are talking full screen video ads that have a tiny X to remove... for maybe 1 minute. I've expressed interest multiple times to donate or otherwise do something to directly fund the site but nothing has come up. And even if I did move on to make a point, this model isn't something that has spread to many, if any, modern gaming news site (and I've long since left Reddit, a topic in and of itself). Do I just give up on gaming news and let clickbait Youtubers inform me instead of written articles?
2. Exploratory purposes. I'm not going to know which and what websites do or do not have ad support, and most of my browsing when searching is very casual. I wouldn't feel too compelled to neither turn off my ad block nor pay a sub for some place I googled up once 3 months ago for a quick answer. I don't quite have an answer for this one.
3. ublock isn't simply blocking ads. trackers, certain cookies, overly large media elements, java script, remote fonts, even individual pieces of HTML elements you specify in a CSS manner. It's so much more powerful and privacy-oriented than a simple ad blocker. If it closed off any site with any of these issues there simply wouldn't be an interet to browse.
It's a compromise at the end of the day, and I can only look out for myself at some point. I'm not necessarily trying to teach websites a lesson per se.
That's actually not true. It's just that it's much harder to find that internet, because search engines are controlled by advertisers.
I'd need to roll my own email provider (and deal with that fallout since I'm now "spam". Ironic), cannot apply to 99% of job portals (employer nor job boards), cannot use most of my productivity apps on the web, and I still can't access most major news, subscription or not.If I was still in school there's a non-zero chance I can access my class portals.
I can replace most of these, but not all.
It's more equivalent to changing the channel during a commercial, which seems to be what the GP is implying as an action.
To that end any mechanism that reduces the presence and effect of advertising is a moral imperative.
Very interesting. Can you please expand a bit more on why do you think this is the case?
In my view, blocking this isn't just morally just, it's absolutely necessary. I deliberately choose not to partake in this and not be a target for manipulation to the best of my ability.
Maybe there was a time when advertising was more about creating awareness instead of feeling and making you want the product, but advertising changed dramatically over the 20th century. There's quite a lot of reading material out there if you're interested.
Without advertising, “content marketing”, and paid placements/reviews people would buy things when they desire or need them.
They’d ask friends, compare specs, and read/watch reviews before determining what to buy.
That is: without ads, people would gravitate towards buying what fits their needs best. They would make generally rational choices given the information available.
Advertising’s job is to subvert those rational choices and make people buy something, whether it’s the best option or not. In fact, even when they don’t actually want or need anything at all.
It causes people exposed to it to spend money unnecessarily, and on the wrong products and downright bad products. Some are more susceptible than others, but in the end it’s an illegitimate tax levied every time you buy something. Even if you didn’t respond to advertising when making a purchase, advertising is so ubiquitous and necessary in most markets that the price you paid probably contributed to the advertising the manufacturer had to deploy to keep up with the arms race.
There’s nothing ethical or necessary about any of this.
Ideally there would be legislation that would force business models to change, but while there is not, ad blocking is absolutely an imperative.
Funnily enough, of all websites out there one of the best is still 4chan when it comes to ads. They have 2 banners, one at the top of the page, one at the very bottom of the page. These are static banners, at most a gif, with no tracking pixels or fingerprinting capabilities or any other similar form of horrid, unethical behavior. No embedded ads masquerading as regular content, nothing that blocks interaction on the page, just simple banners that target the site's particular niche like anime or cheap junk from Japan.
But as long as websites aren't using this model of ads and are instead opting for something disgusting like https://fingerprint.com then you won't see an iota of sympathy or care for "ethical" behavior from me.
Viewing the ad made them money.
Visiting and not viewing the ad lost them money. They paid for the server but made no money.
Only one of these three options is painful enough for them to get the point. It’s harsh i know, writers need to eat, but they need to understand I won’t “pay” them with my eyeballs unless the site is usable in return at a bare minimum.
Any content you make available publicly is fair game to be remixed, reformatted, summarised, and yes, ad-blocked.
It’s not the user’s job to make someone’s business model work.
There is a negative feedback loop where most third party content is only published on the most popular sites, so it becomes impossible to entirely avoid these sites even if the companies behind them are cancer.
> That would be ethically consistent.
Don't drag ethics into a mud fight with billion dollar companies. I lived through ads that faked download buttons, faked virus alerts, provided links to fake "official" download sites with malware or directly tried to infect your computer. The only ethical thing you can do with the ad industry is rob those rotten sociopaths blind.
Reddit mastodon lemmy etc already sanitize websites I read, and often I just read the comments, not the article.
Often people quote important parts of the article in the comments.
Ad blockers is like an antibiotic, I use them but I also try to not expose myself to germs.
Oh well...
If I have a Pi-Hole / Adguard Home running in my network and use it as a DNS, that would mean this extension is useless for me (give I use the same and more filter lists)?
I understand the significant security implications (whether or not you agree with mv3), but found myself wondering if the permissionless model might make it harder to detect a user adjusting the page at a different point in the request/response/draw cycle.
https://addons.mozilla.org/en-US/firefox/addon/ublock-origin...
Also it would be impossible to perform cosmetics injections (scriptlets, alterations of the DOM, etc.)
It might already provide a good base-line but definitely not enough for all cases (e.g. YouTube ads, etc.)
the value of dns/ip level blocking is diminishing as resource density per host increases due to ipv4 shortage and should be completely inpractical with ipv6 due to adress space size.
sure, we do that, too: https://github.com/StevenBlack/hosts
Yes, pi-hole exists, but i get the feeling that's considered "too nerdy". I mean something that's about the size of a rubik's cube, ethernet in/out, power, and works out of the box with zero configuration needed.
Still, that alone is not as effective as an extension that sits in the browser, that understands and can see the contents of the HTTP requests and responses.
> In the coming months Mozilla will launch support for an open ecosystem of extensions on Firefox for Android on addons.mozilla.org (AMO). We’ll announce a definite launch date in early September, but it’s safe to expect a roll-out before the year’s end.
https://blog.mozilla.org/addons/2023/08/10/prepare-your-fire...
Don't. Use Fennec instead https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/
I tried to make a Safari extension and it is a really ridiculous experience. You need to write basically two “wrapper” native Swift/ObjC apps, in addition to the javascript extension. I thought they were making fun of me.
And in addition to THAT nonsense, the extension is far less powerful than in other browsers (random things not implemented).
For anyone who is: Safari has Adblock extensions that work as well as any other browser, and they work on mobile Safari too.
Install AdGuard.
uBlock was the original name for the add-on that subsequently was ethically compromised/"sold out to" advertisers
uBlock Origin is the 2nd version written by the original author (gorhill) and is not compromised.
Just wasn't sure which you are talking about
https://addons.mozilla.org/en-US/firefox/search/?page=1&q=ub...
It's still called uBlock Origin, and in general I don't think keeping track contextually of when you can get away with a name collision is a great way to do things, and this is an area of privacy concern so I think many of the people interested in the space would like to remain educated about it.
https://www.reddit.com/r/Adblock/comments/koowte/encrypted_d...
I like how I don’t need a separate app (just install the profile) but I do wonder if I need to implicitly trust the website that has the profiles for download.
So far so good though.
I use the mullvad ones. Sometimes it breaks public wifi signins, so I switch to a less restrictive one in those situations (usually CIRA, which is the Canadian domain registrar)
The really nice thing about DNS profiles is that they’re system wide, so it works against in-app ads too.
Most serious iOS content blockers ship both a native list (or multiple) and an active counterpart, usually focusing on YouTube ads.
However I am aware that adblocking is still poor on Safari, maybe nobody just can match uBO
I mean, to each their own principles but…
We need an opinionated browser that isn't bought-and-paid-for opposition like Mozilla is to Google, and standards committees who aren't beholden to corporate profits. The Web is supposed to be for everyone, not just Google.
But there will be a bunch of posts in this thread about people bemoaning Firefox because they have to have thousands of tabs open all at once everyday and Firefox renders them a second or two slower. There will also be people who will complain that the dev tools aren't exactly like what they learned in college/their boot camp so they can't spend dozens of minutes learning the Firefox tools so they can make their CRUD SPA can load megabytes of JSON outside of Chrome
Who wouldn't? It's one less version to maintain, and you're not going to stop maintaining the one most people use.
Firefox has done this to me multiple times. As someone who uses a web browser as a tool for both business and pleasure, and as someone who does not appreciate flag days forced on me for no good reason, I am perfectly happy and have been encountered far fewer surprises with a chromium fork.
This won't be remedied because it is the point of Manifest V3. Google is an ad company. The next step is the Web Integrity API, where the website can block you if you have even uBOL.