Is this known behavior? Is it considered a security issue that should be fixed?
A malicious extension being installed in your browser via some IP or
DNS hijacking attack would be a disaster for many. So it would make
sense for Firefox to require HTTPS when downloading extensions, at
least for those coming from addons.mozilla.org.
If there is a more appropriate place to discuss this, please let me know.
-- Alexander
Yes.
> Is it considered a security issue that should be fixed?
No. The scheme for authenticating updates for addons has several means,
each of which works. One is to use SSL. Another is to use signed updates.
Signed updates may be downloaded over an unencrypted channel. Their
authenticity is verified using the digital signature, before they are
applied.
The update check, which happens over SSL, includes a hash in the reply.
When the update is then downloaded (without SSL), the data is checked
against the hash from the update check. If the data was tampered with,
the hash won't match and the bad update won't be applied.
This allows update bandwidth to be pushed to mirrors, without requiring
them to support SSL.
Justin
Which hash algorithm is used?
- Bil
> Justin Dolske wrote on 1/4/2009 9:48 PM:
> > The update check, which happens over SSL, includes a hash in the
> > reply. When the update is then downloaded (without SSL), the data
> > is checked against the hash from the update check. If the data was
> > tampered with, the hash won't match and the bad update won't be
> > applied.
>
> Which hash algorithm is used?
SHA-1, though I have a patch submitted (bug 419906) to change it to use
SHA-256 instead, but I need to rework my patch to address some
pre-review comments.
~reed
--
Reed Loden <re...@reedloden.com>
>> If the data was tampered with,
>> the hash won't match and the bad update won't be applied.
>
> Which hash algorithm is used?
SHA-1.
Example link:
Justin
Thanks for pursuing the patch; Bruce Schneier has been advocating moving away from SHA-1 for a number of years now:
http://www.computerworld.com/printthis/2004/0,4814,95343,00.html
- Bil