Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Vulnerable package managers
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-12-2008   #21 (permalink)
Linux Enthusiast
 
elija's Avatar
 
Join Date: Jul 2004
Location: Linux wants your brainz
Posts: 602
I think it's more a case of people choosing a mirror that has been officially approved with minimal checks. The mirror then servers up dodgy old packages.
__________________
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
(How much wood would a woodchuck chuck if a woodchuck could chuck wood)

Registered Linux User: #459086

PM is not a good way to get help. Please ask in the forums.
elija is offline   Reply With Quote
Old 07-12-2008   #22 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,218
Quote:
Originally Posted by elija View Post
I think it's more a case of people choosing a mirror that has been officially approved with minimal checks. The mirror then servers up dodgy old packages.
That's precisely what it is.

The packages are official and legit (that's why they are signed), but they're old. So the risk is that someone sets up a legitimate looking mirror that serves up old packages with known weaknesses.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 08-25-2008   #23 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,258
So, it didn't take long for this vulnerability to (almost) get exploited.

Online intruders hit Red Hat, Fedora Project

While I still don't agree that the package mangers, themselves, are to blame (does somebody want to explain to me why it's yum's fault that somebody hacked fedora's servers?) this does go to show what needs to be done.

I don't mean to brag but if they were using my idea, it would be a lot easier for them to recover from this break-in. Just revoke the current cert, re-issue, have all of the mirrors pluck the new cert off of an LDAP server and re-sign.
Thrillhouse is offline   Reply With Quote
Old 08-25-2008   #24 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,218
Hi Thrillhouse,
I don't think the recent Redhat break-in is an example of the weakness we were discussing in this thread. The Redhat attack was a bunch of crooks hacking into a server to try to get at the key, whereas the vulnerability we were talking about was a bunch of crooks setting up their own repository with a legitimate key and then serving up old, signed, known-to-be-vulnerable packages.

The former (as you say) doesn't demonstrate a weakness in the package management system, while the latter does.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 08-25-2008   #25 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,258
Quote:
Originally Posted by smolloy View Post
...whereas the vulnerability we were talking about was a bunch of crooks setting up their own repository with a legitimate key and then serving up old, signed, known-to-be-vulnerable packages.
Isn't it reasonable to assume that is exactly what they would have done had they learned the passphrase to the signing key? Heck, they wouldn't even need to set up their own mirror. They could probably carry it out on Fedora's servers.

In this case, the threat is more serious than the attack described in the paper because, even with signature verification, there would be no way to prevent a replay attack. The key would have been compromised and the attackers would essentially have total control while unwitting users download and install the vulnerable packages.
Thrillhouse is offline   Reply With Quote
Old 08-25-2008   #26 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,218
True. That's probably what they were planning to do.

But, if they had have been successful, then they would have had a means to send out bad packages, just like the replay attack. So, from a users point of view, it would have been just as serious.

For what it's worth, I think the attack we were discussing is more serious since it shows that the managers of the repositories of all the major distros weren't as paranoid as I hoped they would be when it comes to allowing people to start their own repos. I think this is much more scary than the fact that there are crooks out there trying to hack into repo servers (which I assumed was happening anyway). Just my opinion.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 08-25-2008   #27 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,258
Quote:
Originally Posted by smolloy View Post
For what it's worth, I think the attack we were discussing is more serious since it shows that the managers of the repositories of all the major distros weren't as paranoid as I hoped they would be when it comes to allowing people to start their own repos. I think this is much more scary than the fact that there are crooks out there trying to hack into repo servers (which I assumed was happening anyway). Just my opinion.
Exactly. That is part of the original point I was trying to make. It's not so much yum's fault that the packages it's fetching are out of date and/or insecure. That could (and probably should) be blamed on the repo maintainer. If the Fedora project doesn't force its volunteer mirrors to update flawed packages, that's a flaw in policy. They should have some kind of "3 strikes and you're out" policy where if you're a mirror and it's discovered you're keeping insecure packages out there when you've been told not to, you get a warning. If you don't pull the package after a certain period of time, that's one strike. Three strikes and you're blacklisted.
Thrillhouse is offline   Reply With Quote
Old 08-25-2008   #28 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,218
Quote:
Originally Posted by Thrillhouse View Post
Exactly. That is part of the original point I was trying to make. It's not so much yum's fault that the packages it's fetching are out of date and/or insecure. That could (and probably should) be blamed on the repo maintainer. If the Fedora project doesn't force its volunteer mirrors to update flawed packages, that's a flaw in policy. They should have some kind of "3 strikes and you're out" policy where if you're a mirror and it's discovered you're keeping insecure packages out there when you've been told not to, you get a warning. If you don't pull the package after a certain period of time, that's one strike. Three strikes and you're blacklisted.
I couldn't agree more

I like the idea of updating yum/apt/yast/etc to look at several repos, and compare the version numbers. If it finds a repo with a lower version number for a certain package than the rest, then it should ping the central server with its details. After a certain number of pings, that repo should be shut down and investigated.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 08-25-2008   #29 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,258
Quote:
Originally Posted by smolloy View Post
I like the idea of updating yum/apt/yast/etc to look at several repos, and compare the version numbers. If it finds a repo with a lower version number for a certain package than the rest, then it should ping the central server with its details. After a certain number of pings, that repo should be shut down and investigated.
That's a good idea but how would you go about shutting down the repo? For the bigger distros, most of these mirrors are outside of the control of the project. They rely on the benevolence of other organizations, like universities, to distribute software. And if it is a malicious attacker, they're not likely to shut it down just because you asked them to. So, what do you do? Run a reciprocal DOS attack on the offending party? Sounds fishy. I suppose you could write something into the package manager that deletes the repo from your sources.list (if you're .deb) or /etc/yum.repos.d (for yum) but that could possibly open up another security hole.

I think the best you can do is announce that said repo is untrusted and put the onus on the user to go about removing it.
Thrillhouse is offline   Reply With Quote
Old 08-25-2008   #30 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,218
Could you have a blacklisted file in yum.repos.d? "Bad" repos could be added to that on yum updates, and yum will only ever download that particular file from a central redhat server.

Something still doesn't feel right about this though. It's quite a hard problem to solve, which is why I worry about it.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 12:49 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0