97 points · by programmernews3 · 11y ago · 72 comments
If I had to summarize the bad security design that is epidemic in the software industry, this would be a good candidate. Security is about always being vigilant and minimizing potential risks, and not the roughly boolean categorization that most people use, where everything judged "safe" or "unsafe".
TL;DR - Stop using "default allow"!
You would think that programmers (and engineers in general) would understand that understand how small, simple pieces can become incredibly useful when you find a clever way to combine them. Unfortunately, the lesson of "information hiding" - and all of the stuff we derive from it, like {object,aspect}-oriented programming and other encapsulation techniques - end up being ignored when discussing security.
Applied to web browsers, the burden of proof should be to justify why a request is both necessary and safe. The "necessary" criteria is important, because we do not know how this data could be combined in the future, possibly in damaging ways. A good example of this is how the NSA uses Google's PREF cookies[1] to track sessions. Another example is panopticlick-style browser fingerprinting, where every bit leaked can make the fingerprint more accurate.
The fact that this is about favicons is a perfect demonstration of how this "default allow" attitude. Not only is that not necessary, it can be supplied with the browser[2], completely removing the need for any GET request. Minimizing external requests isn't even considered.
[1] https://www.washingtonpost.com/blogs/the-switch/wp/2013/12/1...
[2] copyright and trademark are poor excuses - if the search engine wants to be in the default set of search tools provided by the browser, they can trivially authorize the redistribution of a a simple icon.
Debian's policy does not allow them to accept "special dispensation" for copyright and trademark permission - either everyone has to get it or Debian can't accept. This is part of why Iceweasel was split from Firefox in the first place:
Per the Debian social contract:
>License Must Not Be Specific to Debian
>_The rights attached to the program must not depend on the program's being part of a Debian system._ If the program is extracted from Debian and used or distributed without Debian but otherwise within the terms of the program's license, all parties to whom the program is redistributed should have the same rights as those that are granted in conjunction with the Debian system.
Here's the thing. There's nothing to combine this info with that doesn't already have this info. IP+User agent. This info is sent with every request and any other gathering of data will contain these anyway.
So it's not just harmless in itself, it's harmless, period.
How is this different from OCSP pings and stuff like that?
Since we know NSA is reading this, it's telling them that you (and they have a good idea who you are if you are connecting from a residential line) just launched your browser. I'd say that's pretty intrusive.
The user-agent is sent for all those connections
Number one is that it's happening when users don't expect it. As an end user, I don't expect my browser to start making requests until I tell it to.
And it's silly to say the information is "harmless in itself," because most of the information Google, Facebook, Yahoo, etc. collect is harmless in itself. The whole point of those companies is to collect as many tiny pieces of "harmless" information as possible to build up profiles about people.
TBH, I don't trust Google at all on privacy matters any more. The way they try to tie my work Gmail to my personal Gmail, to my youtube viewing and cram everything into Google+ has really rubbed me the wrong way, and I've been moving away from their services as much as possible. The last thing I want is my browser contacting them without my knowledge.
Options -> Security -> deselect "Block reported attack sites" and "Block reported web forgeries". Easy.
There are alternatives for everything out there.
Edit: Since this is getting upvotes, I was wrong and pigeons is right.
[Debian] Iceweasel is a fork [from Firefox] with the following purpose :
backporting of security fixes to declared Debian stable version.
no inclusion of trademarked Mozilla artwork (because of #1 above)
Beyond that, they will be basically identical. (quoting Roberto C.
Sanchez post in debian-devel mailing list)
But there was another Iceweasel, GNU Iceweasel. To avoid confusion with Debian Iceweasel, it has been renamed to GNU Icecat. GNU IceCat, formerly known as GNU IceWeasel,[3] is a free software
rebranding of the Mozilla Firefox web browser distributed by the GNU
Project. It is compatible with Linux, Windows, Android and OS X.[4]
The GNU Project keeps IceCat in synchronization with upstream development
of Firefox while removing all trademarked artwork. It also maintains a
large list of free software plugins. In addition, it features a few
security features not found in the mainline Firefox browser.
This article is about Debian's Iceweasel, which is why my comment was wrong.https://wiki.debian.org/Iceweasel https://en.wikipedia.org/wiki/GNU_IceCat
Google maintains the Safe Browsing Lookup API, which has a privacy drawback: "The URLs to be looked up are not hashed so the server knows which URLs the API users have looked up". The Safe Browsing API v2, on the other hand, has the following privacy advantage: "API users exchange data with the server using hashed URLs so the server never knows the actual URLs queried by the clients". The Firefox and Safari browsers use the latter." https://en.wikipedia.org/wiki/Google_Safe_Browsing#Privacy
> Safe Browsing also stores a mandatory preferences cookie on the computer[9] which the US National Security Agency allegedly uses to identify individual computers for purposes of exploitation.[10]
That may or may not be true, but must one be a radical to be concerned?
Privacy Theater. No real information is lost since all you need to do is have a database of domains and boom, hash easily reversed.
I doubt most mainstream users are even aware of safe browsing or how it works. They could very well be ok with it, but that is not obvious to me.
Nor would I say that a desire to disable safe browsing represents a particularly "radical" view.
Quote:
The request body is used to specify what the client has and wants:
* The client optionally specifies the maximum size of the download it wants to retrieve.
* The client specifies which lists it wants to retrieve.
* For each list, the client specifies the chunk numbers it already has.https://github.com/Webconverger/webconverger-addon/issues/42 https://github.com/Webconverger/webconverger-addon/issues/41 https://github.com/Webconverger/webconverger-addon/issues/43
Though with things like https://bugzilla.mozilla.org/show_bug.cgi?id=1100304 and anti-features like http://dustri.org/b/firefox-youre-supposed-to-be-in-my-pocke... you got to wonder if Mozilla has stopped caring about privacy.
>Committed to you, your privacy and an open Web [1]
>We’ve always designed Firefox to protect and respect your private information. That’s why we’re proud to be voted the Most Trusted Internet Company for Privacy. [1]
>When it’s personal, choose Firefox. [2]
self-repair.mozilla.org
snippets.cdn.mozilla.net
search.yahoo.com
location.services.mozilla.com
www.mozilla.org
tiles.services.mozilla.com
safebrowsing.google.com
aus4.mozilla.org
Try it yourself as Guest. But make sure that Parental Controls are on. That way OS X will popup these sites and ask permission. Firefox is unusable w/o opting in all of these.Why, after all the exploits, insecure software and bad decisions, can people still not see that they can't anticipate everything?
For instance, here's a scenerio I can easily envision: The NSA strongarms Ebay into letting them sniff TCP connections to their favicon, combines the TCP fingerprint with the browser useragent to uniquely identify you from perhaps millions of other users. Geolocate your IP to determine where you are and bam they know all about you they need to know. Tin-foil hat? Of course. Plausible? Totally. Doable? Absolutely. They don't need to be perfect, just good enough.
127.0.0.1 www.google-analytics.com
127.0.0.1 ssl.google-analytics.com
127.0.0.1 www.hosted-pixel.com # I Swear I'm Not Making This Up
On some but not all operating systems it's better to use 0.0.0.0.It's better to block it with a firewall but your aged grandmother doesn't know how to configure them.
iOS and I expect Android have hosts files but you must jailbreak to edit them. On iOS you can do that with iFile from the Cydia store. iFile once cost money but it's free now.