Re:ICE Is Using Fake Cell Towers to Spy on People's Phones
by saagarjha on Tuesday September 09, 2025 @07:46PM
(#45191121)
Yes, but the moment you try to push your local git will complain that you are not aligned with the upstream repo.
Re:ICE Is Using Fake Cell Towers to Spy on People's Phones
by perihelions on Tuesday September 09, 2025 @08:01PM
(#45191265)
Not so. GitHub would remember who you are; advertise to you and to you only a set of fake checksums consistent with your fake view of the repo. Your git client would see nothing amiss—your local fake checksums are consistent with the fake checksums the server sent you. Having accepted your push, the server would ignore the fake checksums, extract the content of your patch, apply it to the genuine repo, and compute a new set of checksums, extending the other checksum tree as if you had pushed directly to it. That's what an MITM is.
Re:ICE Is Using Fake Cell Towers to Spy on People's Phones
by saagarjha on Tuesday September 09, 2025 @08:04PM
(#45191295)
This falls apart instantly if you share a hash with anyone else, though. Which is exactly what happens when you send in a PR
Re:ICE Is Using Fake Cell Towers to Spy on People's Phones
by account42 on Wednesday September 10, 2025 @06:39AM
(#45195779)
Most projects on GitHub have you submit PR's via GitHub infrastructure so they have total control over who sees what there as well.
Re:ICE Is Using Fake Cell Towers to Spy on People's Phones
by BobaFloutist on Wednesday September 10, 2025 @12:31AM
(#45193309)
What happens when a dev tries to patch a bug in the malware and nobody can tell what the hell they're talking about?
Git may be designed as a distributed VCS; and it'd be a different situation if it were used that way in practice. For many projects, GitHub has a full MITM. They could even—forget about the checksums—bifurcate the views in between devs—accept commits from one dev, send over those commits with translated Merkle trees to another dev who has a corrupted history, and they'd never figure it out.