Re: .gitmodules security
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <YgBsoNnusOTkBrcM@vapier> |
On 07 Feb 2022 00:19, Vincent Lefevre wrote: > On 2022-02-06 16:43:47 -0500, Mike Frysinger wrote: > > it requires more than a MITM to be successful. you'd also have to > > come up with a sha1 collision which is non-trivial for most people. > > not out of the reach of nation states, but we prob aren't the target > > market :p. > > I don't understand why you would need a sha1 collision, while you > don't have a sha1 to compare with: say, the current local status is > at a commit common to the real repository and to a fake repository, > then the remote repositories diverge: with a "git fetch" only, how > can you distinguish the real new commits and the fake new commits? the repository is pinned to a specific commit as you can see online: https://git.savannah.gnu.org/cgit/libtool.git/log/gnulib so the normal git clone + submodule sync requires a sha1 collision. if someone were to manually update the submodule to a newer version, then you only have to MITM new fake commits, but presumably a commit updating the pin would be detected fairly quickly as no one else is going to have those commits injected. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIAbKAACgkQQWM7n+g3 9YGNTxAAv/GTzrvlicZTXEsl1svlDdQUG8DIg+R9VsRoGx9etDPP7u/xitY47AHT WgWsYz9ccGBqL0WczvRkTJLFwqUIVJCPB/p9nSsTzTwklszPMnttc11HHIAZ1oJb cDI29aW1oYoAXDkUULCPwu3/TxRo7QeuW/lmRJoK0fRKF0d815UYjOhypsJSo8C9 0t3gwNBauwe7Vc78ZE+TWUksBrB+zigFzWutuahYnw9DOiToTRzK1Hs2ADiuACz0 u1jAvD824EBdcscXnzJ1jVzYZ5mKdoZvetgwxbeF7NFIRhbzX23YU0UflorUmNaJ D9IqRuGu3one5HoMEgzuVp8frGVKnqJjPzrSkClQXEvbGn7YSRewQL07XdWuhJQs B/CjYxD8IyGg5qNCjh5W3N8EsCyzuRPVMhzWNQYp0SCmSZy0jIl6goqAx5ZFUb+T VwkHW7f81khvD/L69iVuT0o2xWhaaWO5KJaEewVCvhfFZu5nY6hYzTNJVESwhyp2 MPc/fkHhDG4jNC1vRw7K+gnoKaJdv/fxIMSYbGnaWi+KFgVnIjnZ3l/6ic5wXLpR afuaZDpb5SkvR106cpnIKU0mcVP8pi06hd5fI18RwaCCce9rauzuvFxRhpfT5Enn wWN8m+pckCG2OdryOn+g7ILTxresmaeG/FKvD8hkJyFIX4H/XfM= =qIjB -----END PGP SIGNATURE-----