Pacman package signing. Why can't they just do it this way?
From what I can gather Pacman is somewhat insecure because anyone can set up a mirror. I read that article on how someone could do a man in the middle attack and change stuff, but that part seems completely irrelevant if you're using a trusted network.
Is there a reason the MD5 sums aren't just stored on the main arch server? That would eliminate the possibility of someone modifying the packages/md5 hashes on their mirror.
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- genyu
2 comments
Because MD5 sums are not the same as signing; MD5 is simply for checking integrity of data, and thus is designed to be fast to compute, which makes it easy to crack. It was also shown to be possible to pad enough null characters to the end of compresses files to fake an MD5, and other such approaches.
Before pacman 3.5, when powerpill still worked, you could leverage MD5 by syncing the database/chechsums from a "trusted" mirror, and then download the packages from other mirrors. As powerpill/aria2 downloads pieces of a packagea from multiple mirrors, the MD5 would be different if something went wrong and would attempt to redownload the package. Of course, this is approach does have plenty of weaknesses. I believe this is similar to what the paccheck utility did.
If you are curious/haven't already, read the wiki and the mailing list--there's plenty of back and forth about what works/what won't and why (without the drama present everywhere else)
Deleted before we saved it.