Re:Announcing the first SHA-1 collision
by anilgulecha on Thursday February 23, 2017 @08:39AM
(#13713732)
Correct, and if you have 2 images that have the same hash, you can serve one or the other at different times. This is the attack.
[ Parent
| on HN ]
Re:Announcing the first SHA-1 collision
by antoinealb on Thursday February 23, 2017 @08:53AM
(#13713822)
SHA hashes cannot protect you against the distribution site getting compromised and the hash replaced.
That is why most package manager include a form of cryptographic signatures (e.g. Ed25519 for OpenBSD's).
SHA and MD5 hashes are just used to protect against accidental corruption, not targeted attacks.
Re:Announcing the first SHA-1 collision
by jnwatson on Thursday February 23, 2017 @09:15AM
(#13713987)
No. Signatures provide the same amount of integrity protection. In fact, all practical asymmetric signature schemes sign a hash. If an attacker can control what somebody signs, he can switch out signed documents using this vulnerability.
Re:Announcing the first SHA-1 collision
by antoinealb on Thursday February 23, 2017 @09:35AM
(#13714127)
well I would say that if an attacker controls what you sign, your security model is already toast, isn't it ?
Re:Announcing the first SHA-1 collision
by anilgulecha on Thursday February 23, 2017 @09:44AM
(#13714193)
Not if you sign with an ideal cryptography hash. (Rather than spend expensive compute on signing the whole message, you create a hash, and sign that.)
The big news here is that SHA1 is now definitively not a cryptographically secure hash.
Re:Announcing the first SHA-1 collision
by simias on Thursday February 23, 2017 @09:15AM
(#13713980)
You can use SHA for this purpose if you retrieve the hashes from a trusted and secured source.
Buildroot does that for 3rd party packages for instance. It downloads the source from the original website (possibly completely non-secured) but then validates the checksum against a locally trusted hash list. Buildroot supports a variety of hash algorithms but many packages still use SHA-1.
Re:Announcing the first SHA-1 collision
by BlackFly on Thursday February 23, 2017 @09:23AM
(#13714027)
To be complete, it should be pointed out that the signature techniques you mention are signing not the document itself but a hash of the document. This attack does allow a bait and switch attack on cryptographically signed documents that utilize SHA-1 as the hash.
Re:Announcing the first SHA-1 collision
by pgeorgi on Thursday February 23, 2017 @08:53AM
(#13713823)
If you can switch between the images, you can also switch hashes. Without a signature they serve _only_ for making sure the network didn't barf into your stream.