News for hackers. Stuff that matters.
Re:Linus: Don't bother with grsecurity. Their patches are pu... by geofft on Monday June 26, 2017 @12:30AM (#14634101)
It is, and he's wrong, and he's usually wrong when security comes up.

See also git using SHA-1: people warned him about this, and he argued passionately and incorrectly that git doesn't use SHA-1 as an integrity measure. He also argued passionately and incorrectly that SHA-1 was unlikely to be broken and worrying about it was a waste of effort. And now other people are doing a lot of slow work to dig ourselves out of literally every single git repo in the world relying on a broken crypto primitive.

Re:Linus: Don't bother with grsecurity. Their patches are pu... by AstralStorm on Monday June 26, 2017 @01:52AM (#14634407)
Security in git is done by signing tags with GPG. This signs the whole tree state as in all of commit IDs and blobs. To break that, you need to collide a blob hash and commit hash or potentially pack file hash. Much harder than doing it for one file. (Albeit git used to be lax with its compression allowing garbage at the end.)
Re:Linus: Don't bother with grsecurity. Their patches are pu... by geofft on Monday June 26, 2017 @11:17AM (#14637443)
It signs the whole tree state, which is a collection of SHA-1 hashes. If I'm interested in introducing a backdoor in an application, I'm basically only interested in colliding the hash of one file; colliding a SHA-1 signature on a file is exactly as hard as colliding the SHA-1 hash of a single file inside a git tree inside a git commit signed with a stronger-than-SHA-1 signature. That is, if I've collided the file's SHA-1 hash, the tree that contains the file is going to have the exact same hash because the tree contains the SHA-1 of the file.
Re:Linus: Don't bother with grsecurity. Their patches are pu... by waynecochran on Monday June 26, 2017 @01:34AM (#14634334)
Git is not really using SHA-1 for encryption, just as unique hashes. I think it is unlikely to get a collision in a non-contrived instance. Eventually git will move off of SHA-1, but I imagine it will never matter.
Re:Linus: Don't bother with grsecurity. Their patches are pu... by geofft on Monday June 26, 2017 @11:21AM (#14637478)
> Git is not really using SHA-1 for encryption, just as unique hashes.

By "encryption" do you mean "cryptography"?

If I sign a git tag, I am signing a data structure that consists of SHA-1 hashes of other data structures. Any attack on SHA-1 means that the thing I'm signing can be subverted.

So, yes, git is using SHA-1 for cryptographic purposes.

> I think it is unlikely to get a collision in a non-contrived instance.

Why do you think this? Usually in engineering we prefer to back up statements like this with evidence.

In particular, practical SHA-1 collisions have been demonstrated: https://shattered.io/

And an attacker is going to be trying to contrive a collision, are they not?

And none of this explains why git didn't use SHA-256 back when it was easy to change. Even if SHA-1 isn't broken in practice (which it is), there's no downside to using SHA-256.

Re:Linus: Don't bother with grsecurity. Their patches are pu... by tptacek on Monday June 26, 2017 @08:33AM (#14636231)
Nobody uses SHA-1 for encryption; it is a hash function.
Re:Linus: Don't bother with grsecurity. Their patches are pu... by waynecochran on Monday June 26, 2017 @09:34AM (#14636645)
It certainly has been used for encryption and probably still is. I wouldn't lose any sleep hashing my passwords with it since most mortals couldn't break it. https://en.wikipedia.org/wiki/SHA-1#Cryptography
Re:Linus: Don't bother with grsecurity. Their patches are pu... by tptacek on Monday June 26, 2017 @10:50AM (#14637213)
That's a list of places where SHA-1 is used as a hash function in cryptosystems.
Re:Linus: Don't bother with grsecurity. Their patches are pu... by romanovcode on Monday June 26, 2017 @05:08AM (#14635232)
Actually this is true on some level:

- He argues and argues that everything is fine

- Weeks later he fixes the issue

Conclusion: he was wrong