Yes, Exactly. So, is it necessary to change SHA-1 having in git ? At the moment, I think there is no reason because SHA-1 doesn't expose security vulnerabilities or functional issues.
-1 karma · joined March 27, 2024
Yes, Exactly. So, is it necessary to change SHA-1 having in git ? At the moment, I think there is no reason because SHA-1 doesn't expose security vulnerabilities or functional issues.
Your opinion: prove it! And Again, if you instead of trolling actually read the post in THIS BRANCH , the question is: shout SHA-1 inn GIT be substituted ?
1. Do SHA-1 put a security risk in GIT ?
2. Is that practically exploitable in any way?
In some application, for example password hashing, SSH MAC, etc, you have good reasons to change hashing algorithm when it became obsolete: because an attacker can be computationally advantaged to crack a password, to compromise the integrity of transmitted packets, etc.
But not because an hashing algorithm became obsolete for some application is obsolete for ALL possible application. Moreover, in some specific application could be DESIRABLE a fasted hashing algorithm.
So why You should change SHA-1 in GIT ?
>> "But a few more of these tricks and I can see those "garbage comments" collision happening"
I don't think so, is computationally astronomically difficult whatever tricks yo u invent. The point here IS NOT to generate a collision adding "garbage comments", again, is to alter the behaviour of committed code in a functional way.
>> "Even without language models you could use something like a language's EBNF grammar as a token generator for source code which would probably pass any glance checks, but definitely not dedicated inspection like a code review. That is probably something that IS PRACTICAL TODAY for SHA1"
Yeah, prove it!
2) This is the main topic ! Being able to generate >>valid code<< with a >>specific purpose<< , so that GIT have to change its hashing algorithm;
3) A.K.A your answer is total nonsense.
Everyone else, ok, I'm listening, give proof that you can change code on GitHub stealthy messing with hashing, moreover inserting a "payload" creating a SHA-1 collision in a reasonable computational time, everything else is BS.
Please, correct me if I'm wrong.
a) is still code
b) is still code AND is code similar to a previous commit
c) is still code AND is code similar to a previous commit AND is valid
d) is still code AND is code similar to a previous commit AND is valid AND makes sense for something
OR at least
a) is still code
b) is still code AND is valid
d) is still code AND is valid AND makes sense for something
Let me know.