Hacker News new | ask | show | jobs
by 6thbit 63 days ago
couldn't github reject a push that contains an existing hash in the repo?
1 comments

It doesn't reject, but it will not replace. Same for a fetch/pull. That is another issue with this attack vector (that Linus also mentions) - it has to be the _first_ time that a node has seen this object. It makes the attack even more difficult than it already is (in like 4 different major ways)