Lurker News

Comments (485) 80 threads

Earlier comments
imron2 replies#
I wonder if there are any 2 single commits on Github from different repositories that have the same SHA1 hash.
bjornsing1 reply#
If there was, then that would have been the first SHA-1 collision, right? ;P
imron#
Yes, but is anyone looking?
Zitrax1 reply#
How many commits are there in total on Github ?
imron#
They have almost 83,000,000 public repositories (https://api.github.com/repositories?since=82960000).

Many of them will be forks of the same projects, but I think it's fair to say there's a sizable number of unique commits.
Granted, the number will only be a tiny fraction of total address space of SHA1, but it'd still be an interesting thing to investigate.

RyanZAG4 replies#
Is a 30 day disclosure period really enough for something like this? It's obviously not possible to 'fix' big systems that rely on SHA-1 such as git or github in only 30 days. Hardware devices that use SHA-1 as a base for authenticating firmware updates?
gcp2 replies#
SHA1 was shown to be flawed in 2005. That's more than 30 days ago.
hvidgaard#
Saying it was shown to be flawed is being nice. It was outright broken 12 years ago as it was shown that you could find collisions with far less complexity that a bruteforce attack.

What has happened is that someone created the code to actually carry out an attack, and showed that it will cost around $110K today.

prefect42#
Right, the Wikipedia page for SHA1 does show research on a variety of possible attacks, starting from 2005.
anilgulecha#
The article states 90 days.

> we will wait 90 days before releasing code that allows anyone to create a pair of PDFs that hash to the same SHA-1 sum given two distinct images with some pre-conditions

djaychela#
I may have misread, but I thought from the article they said that the period would be 90 days before the release?
RubyPinch#
git does some other funky things, usually it just uses the pre-existing object, or crashing

http://stackoverflow.com/a/9392525
It might change, but the response could quite likely be a stubborn "I said no before, so I'll say no now"
- - -
This attack has been known since 2013, that is a really long disclosure time (the main thing today is proving that the attack isn't theoretical)

bobbyyankou2 replies#
Can someone help me understand what the major distinction is between this accomplishment (SHAttered) and the same team's The SHAppening (2015)?

It looks like the did the same thing or something similar in 2^57.5 SHA1 calculations back then versus 2^63 SHA1 calculations this time.

detaro1 reply#
SHAppening was a freestart collision, this is a "full" one. This stack overflow answer looks like a good description of freestart collisions: https://crypto.stackexchange.com/questions/29695/what-is-a-f...

My attempt at TL;DR: SHA-1 works on blocks, and each block is processed and it's data "mixed" with a previous intermediate result based on the previous blocks (Merkle-Damgård construction). A freestart collision only shows blocks and values for the intermediate results which lead to a collision. For a full collision you still have to figure out what sequence of blocks gets the intermediate results to the necessary values.

bobbyyankou#
Ah, cool. I didn't notice the distinction between freestart and full. Thanks for that link; it was very helpful.
mrybczyn#
SHA-1 isn't broken until someone makes a multi step quine that hashes to the same value at every stage!

BTW quine relay is impressive: https://github.com/mame/quine-relay

Load more comments