|
|
Log in / Subscribe / Register

Validity checking - should be mandatory?

Validity checking - should be mandatory?

Posted Sep 15, 2008 15:07 UTC (Mon) by epa (subscriber, #39769)
In reply to: Validity checking - should be mandatory? by kripkenstein
Parent article: Adding a signing key to RPM

The more scary thing is that if someone MITM'd your http connection they could change the contents of the packages and as long as the new data decompresses without error it would silently be installed! At least, that's my deduction from what you said, that dpkg goes as far as decompressing the package without checking any signature. Perhaps it does GPG verification on the uncompressed data and everything is safe after all?

I agree with your main point: get everything downloaded, check the signatures before going any further, and only then start the last-minute validation of dependencies etc. and install the packages. This also protects you from possible buffer overruns in zlib or other packaging software that could be exploited by a malicious deb file.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds