News for hackers. Stuff that matters.
Re:Announcing the first SHA-1 collision by pgeorgi on Thursday February 23, 2017 @08:51AM (#13713807)
You could (try to) collide one of the blocks at the end of the tree. The tree of hashes will still be the same since the hash of the block didn't change.

Then join the torrent with a client that doesn't download but only upload that block (there will be some that will pick it from you). Many legit copies, except for those that were so unlucky to fetch the block from you.

If you manage to build such a block based on one in recurring content (eg. a distributor's logo at the beginning of the file), it could be reused, too.

Re:Announcing the first SHA-1 collision by koolba on Thursday February 23, 2017 @08:54AM (#13713832)
> You could (try to) collide one of the blocks at the end of the tree. The tree of hashes will still be the same since the hash of the block didn't change.

Except you can't do that as this isn't a preimage attack. You can't create an arbitrary bad file matching an existing SHA-1 with this.

Re:Announcing the first SHA-1 collision by Natanael_L on Thursday February 23, 2017 @10:48AM (#13714803)
If you created the original torrent then you can do it
Re:Announcing the first SHA-1 collision by jakeogh on Thursday February 23, 2017 @10:02AM (#13714357)
On the other hand it's useful for denial of service. If you want to disrupt a swarm feeding it bad data is 'good enough'.
Re:Announcing the first SHA-1 collision by koolba on Thursday February 23, 2017 @10:09AM (#13714434)
> On the other hand it's useful for denial of service. If you want to disrupt a swarm feeding it bad data is 'good enough'.

No you can't do that either. Again, this is not a preimage attack: https://en.wikipedia.org/wiki/Preimage_attack

That means you can't use this to match an arbitrary SHA-1. That means you can't use it to generate bad parts of a larger file.

What you're describing is already possible by having clients connect to a swarm, pretend they have parts of a file, and send gibberish. The receiver won't know until they finished downloading the part and hence waste the part-size in download capacity (i.e. DOS). I bet with IPv6 it'd be really easy to have a single malicious client pretend to be a world of swarm members.

Re:Announcing the first SHA-1 collision by jakeogh on Thursday February 23, 2017 @10:11AM (#13714458)
Thanks, so it can gen 2 same size colliding chunks, but it can not take an arb chunk and generate a collision for it. Right?
Re:Announcing the first SHA-1 collision by koolba on Thursday February 23, 2017 @10:18AM (#13714528)
Yes that's my understanding of it. In the PDF example on the site, the file format allows enough tweaking to the raw data without impacting the content to make it feasible.
Re:Announcing the first SHA-1 collision by pgeorgi on Thursday February 23, 2017 @09:08AM (#13713924)
One of the good parts of doing it at the leaf hashes over the top level hash as proposed further up the thread is that quicktime/avi/etc are much more amenable to carrying some "junk" data than trying to figure out two colliding merkle tries with the same hash.