News for hackers. Stuff that matters.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by fastball on Tuesday November 25, 2014 @06:21PM (#8660386)
I think the idea is that you don't need the extra security of signing, because if the file was served over HTTPS then you can be secure in the knowledge that it has not been modified.

The reason you sign packages is to ensure that the file you want and the file you get are actually the same. If you have a secure connection to the trusted host of said file, you don't need to worry about that.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by mikeash on Tuesday November 25, 2014 @08:47PM (#8660817)
The difference is that signed code lets you keep the signing key offline, and therefore it can be much more secure.

For a concrete example, consider the case where the server is compromised and an attacker wants to insert malware. HTTPS does nothing at all to help, here. The attacker has control over the server and can make it serve whatever it wants, and since the server still has its normal certificate and key, the attacker's malware-infested code will show up just like legitimate stuff would. If the code was signed using a key that isn't kept on the server (normally a code signing key will be kept on a developer's computer, and often protected by a password so it rarely exists in memory unencrypted) then the attacker can't force the server to serve malware that will be accepted by downloaders.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by pserwylo on Wednesday November 26, 2014 @12:18AM (#8661185)
> If the code was signed using a key that isn't kept on the server (normally a code signing key will be kept on a developer's computer, and often protected by a password so it rarely exists in memory unencrypted)

And to take this even further, you have the option of keeping the key on a machine that is completely disconnected from any network. In addition, this machine could use a Hardware Security Module to further increase the security of the signing key.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by blcknight on Wednesday November 26, 2014 @06:53AM (#8661945)
All someone needs to do is hack the AMO servers and change out the XPI -- and no one would no the difference, because the packages aren't signed.

Not to also mention, MITM attacks on the actual SSL connection.

Serving over HTTPS isn't a valid package signing strategy.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bzbarsky on Wednesday November 26, 2014 @11:02AM (#8662901)
> Not to also mention, MITM attacks on the actual SSL > connection.

The AMO cert is pinned in Firefox. If you MITM the connection, Firefox will refuse to connect to it.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by snowwrestler on Tuesday November 25, 2014 @11:04PM (#8661068)
> The reason you sign packages is to ensure that the file you want and the file you get are actually the same. If you have a secure connection to the trusted host of said file, you don't need to worry about that.

HTTPS provides a secure connection, in theory, but what if AMO is itself compromised? They are just a 3rd party host for the EFF's extension, after all.

HTTPS or not, the only way to check that the code you get from AMO is the same code the EFF gave AMO, is to check it against the EFF's signature.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by fastball on Tuesday December 02, 2014 @05:02PM (#8690261)
If AMO is compromised, then a bogus hash or whatever could be published as well.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by throwawayaway on Tuesday November 25, 2014 @06:24PM (#8660402)
A MITM attack? What then? Seems you need signing then.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by Iburinoc on Tuesday November 25, 2014 @06:28PM (#8660414)
Perhaps I misunderstand you but since it's HTTPS, in theory there are no MITM attacks.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bigiain on Tuesday November 25, 2014 @07:46PM (#8660674)
Unless, as the article points out, the attacker has your private SSL key (perhaps leaked via Heartbleed).

Without cert pinning here's also the problem of the attacker convincing some browser-trusted CA to issue an SSL cert for addons.mozilla.org, then MITMing you with that.

(And with 600+ trusted roots, many of which are owned by various governments, against state level attackers an ssl connection's claim of authenticity has to be considered very close to worthless...)

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bzbarsky on Wednesday November 26, 2014 @11:03AM (#8662912)
> Without cert pinning

In the case of Firefox connecting to addons.mozilla.org, there is cert pinning.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bigiain on Wednesday November 26, 2014 @05:38PM (#8664986)
I didn't know that, thanks.

(In retrospect, it's such an obvious thing for them to do - I don't know why I didn't assume it was likely enough to be implemented and check before I posted that...)

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bzbarsky on Thursday November 27, 2014 @01:32AM (#8666234)
To be fair, I _think_ the pinning was only added in Firefox 32, back in September. So it's a pretty recent development.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by throwawayaway on Wednesday November 26, 2014 @09:15AM (#8662343)
http://arstechnica.com/information-technology/2013/11/quantu...

All they need is an authorised certificate.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by click170 on Wednesday November 26, 2014 @10:44AM (#8662787)
Its possible to MITM an HTTPS connection, trick you into thinking it is secure by providing a green lock favicon, and intercepting or sniffing everything you do over that connection. And it will work on nearly every website in existance.

More people should be aware of SSL Strip and how to protect yourself against it.

http://www.thoughtcrime.org/software/sslstrip/

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bzbarsky on Wednesday November 26, 2014 @11:03AM (#8662909)
> Its possible to MITM an HTTPS connection

Not in the case of Firefox connecting to AMO, because it uses a pinned certificate for that.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by click170 on Friday November 28, 2014 @04:12PM (#8672191)
Are you sure?

I perform HTTPS interception on all out-bound traffic on my network and I don't recall making an exception for AMO, and I have a number of add-ons installed. Though, it wouldn't be the first time I've forgotten about something like that.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by bzbarsky on Friday December 05, 2014 @04:19AM (#8703561)
Did you install your addons before updating to Firefox 32? That's when the pinning was introduced.
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by holdenk on Tuesday November 25, 2014 @07:37PM (#8660647)
So with the system of mirrors that is in place with distributing some open source software (e.g. debian, ubuntu, etc.) this is less true. A local mirror could selectively serve bad packages (and serve the correct packages to the verification bots).
Re:Why HTTPS Everywhere isn't on addons.mozilla.org by ckuehl on Tuesday November 25, 2014 @08:43PM (#8660810)
Debian has a pretty nice mirroring system. Not only are all packages signed, but the Release file (which includes checksums of package lists) is also signed, preventing a mirror from omitting packages. For repositories which receive security updates (say, wheezy-updates), the index is valid for only few days in the future, which helps to prevent mirrors from withholding security updates [1].

If a mirror isn't updated, the user is eventually warned during updates:

> E: Release file for http://mirrors/debian/dists/wheezy-updates/Release is expired (invalid since 1h 20min 30s). Updates for this repository will not be applied.

It mostly negates the need for https mirrors for authenticity, although many still offer it. To my knowledge, most projects with mirror networks operate similar to this.

[1] e.g. https://mirrors.ocf.berkeley.edu/debian/dists/wheezy-updates... has the pseudo-header Valid-Until: Tue, 02 Dec 2014 20:50:35 UTC

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by Xylakant on Wednesday November 26, 2014 @10:10AM (#8662616)
Actually, there's no requirement that .deb packages are signed. The system still provides a strong guarantee, because the releases file contains a list of checksums for each package, so it's impossible to tamper with the package, even though it's unsigned. However, if you manually download the package, all bets are off.

RPMs are usually signed directly.

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by timschmidt on Tuesday November 25, 2014 @07:46PM (#8660677)
Someone better tell these guys to stop selling SSL MITM hardware, then.

http://www.wired.com/2010/03/packet-forensics

Re:Why HTTPS Everywhere isn't on addons.mozilla.org by n09n on Tuesday November 25, 2014 @11:32PM (#8661109)
In this situation, addons.mozilla.org is the hypothetical man in the middle so https doesn't protect you.