Re: Cryptographic signatures of installer sets

Glen Barber <[email protected]>
Newsgroups gmane.os.freebsd.security.general
Message-ID <[email protected]>
On Sat, Jan 25, 2020 at 08:00:07PM +0000, Nathan Dorfman wrote:
> Hello all,
> 
> I really hope I'm missing something here, and we can all have a nice
> chuckle at my expense.
> 
> But I can't see any way the integrity of the installer sets (base.txz,
> kernel.txz and friends) can be verified cryptographically? There is a
> MANIFEST file containing SHA256 checksums, but it itself does not appear
> to be signed in any way.
> 
> The installer images do come with PGP-signed checksums. So, when using
> an image that already contains all the sets, one can be sure they are
> authentic. What happens when one uses a network-only installer, though?
> How can it authenticate the sets it downloads from the user's chosen
> mirror?
> 
> A cursory glance at src/usr.sbin/bsdinstall suggests that it does not,
> in fact, do that. Checksums are compared against the MANIFEST (in
> scripts/checksum), but that is itself simply downloaded from the same
> mirror (in scripts/jail), usually over plain FTP, without any
> authentication.
> 

No, this last part is not true.  The installer always verifies the
checksums against /usr/freebsd-dist/MANIFEST on the installation medium.

In particular, this was done in r293223, where the LOCAL_DISTRIBUTIONS
variable explicitly contains the MANIFEST.

Glen
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAl4vEtUACgkQAxRYpUeP
4pOaiA//Zw3CNf/io/WiClS6MNLt0y1EfeSB//5+e95zd+xvVNKf6bmvf1zD4qO3
MrrogmMQiVOzYPH29dbHHLsLkmf8aBXkzQuVEONQrKAwGWcgTYggoRf+xHdeLSqr
4PF1BrdrJIGS/hd/7q1hs017dsaqkpPXIZVuS1Vkm1tGBXYtQviKcLSRui9cGmMv
j6xSCwBaGVPw+9wJKPc7As3QHsJkpTfhY8y0vcCbMTjKWhvG/fkjXXKPCpJd3g2t
e9U/tYE+8LZY+2eR2xR4AED2LKwLddtXkmXWGot1eel195sz33c45lNsfw5aVpw+
HxLOmKMYQpvkKFaeUUJE0xqn5CEVieMNiHvyiI+PxGnyHZXTl8UHw9ATw6tU/Ybm
LIX9QBzYWWcZtHCjsBjcGd9F4/qjm46s860EJUt+KJ9z/FZs3oILMlzNDE9Hal9J
ScJ98a31j0AOp6C+Nv/J6digNvlnGumIMnsPMu7kGCufb0raNetAwEbQ+vv4TQ7z
t0PsjWx/JgQhGyNZ2NrF/cLNI/o/zNuaChQHrAa2zChTLNs2CjaGcuJWj4T+7fOr
ikQ6MoQ3q6z5/OKO/sJEQ9ErSYTyuH+PXWztFnNSnD1hIMUhdmpeJRVr9vgExwPX
jnuuXf9Fc9nURf11DOBR+QQB5ToM875gtJd72Q0PqhHSBe2Pqdw=
=kBOZ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.