Any signed GitHub commit can be copied, without the author's secret key, creating a distinct commit with an identical tree, metadata, a valid signature, and a "Verified" badge
PoC: github.com/JakeGinesin/git-cha…
New Research: A "Verified" GitHub Commit Is NOT Unique
Git identifies every object by a hash of its contents, and for a commit that hash covers the tree, the metadata, the message, and the raw bytes of any signature.International Cyber Digest
This entry was edited (2 weeks ago)

kevincox
in reply to ☆ Yσɠƚԋσʂ ☆ • • •I'm a little confused by what this is saying. It seems that you can create a basically identical commit with a different signature and thus a different (hashed) ID.
So basically you can take a Signature S1 and produce a valid Signature S2 over the same data that is not identical.
This doesn't seem like a very useful exploit primitive to me. Not nothing, but doesn't seem like a big deal. I feel like I am misunderstanding something.
☆ Yσɠƚԋσʂ ☆
in reply to kevincox • • •kevincox
in reply to ☆ Yσɠƚԋσʂ ☆ • • •I don't understand. Why does having two commit IDs with the exact same code cause problems.
The author did sign it. It is the exact same code.
To split past what? At best it seems that they would be able to have a different ID for the exact same code, which seems harmless? Slightly confusing at worst.
Nix also doesn't use PGP signatures, it requires a separate hash of the resulting commit (the files with the .git directory stripped by default).
jatone
in reply to kevincox • • •☆ Yσɠƚԋσʂ ☆
in reply to kevincox • • •kevincox
in reply to ☆ Yσɠƚԋσʂ ☆ • • •☆ Yσɠƚԋσʂ ☆
in reply to kevincox • • •kevincox
in reply to ☆ Yσɠƚԋσʂ ☆ • • •☆ Yσɠƚԋσʂ ☆
in reply to kevincox • • •