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.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > Cross referencing OSVDB id and Linux distro

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-19-2009   #1 (permalink)
Just Joined!
 
Join Date: Oct 2008
Location: Baton Rouge, LA
Posts: 35
Cross referencing OSVDB id and Linux distro

Is there a way to see if a certain Linux distro release has fixed certain OSVDB id's? For example, I would like to see if CentOS 5.3 is vulernable to OSVDB 46085. and several others. I am considering CentOS for a webserver and have a few OSVDB id's I would like to check for before doing so. Thanks in advance.
br0ken is offline  


Reply With Quote
Old 09-21-2009   #2 (permalink)
Just Joined!
 
Join Date: Aug 2009
Posts: 13
Quote:
Originally Posted by br0ken View Post
Is there a way to see if a certain Linux distro release has fixed certain OSVDB id's?
There are at least two obstacles along the road. First of all it's mostly CVE assignments that are used. This dumb shell function* will try to see if the OSVDB entry has a CAN-CVE and print the RH URI.
Code:
OSVDB2RHCVE() { links -dump http osvdb org/"$1"|awk -F'=' '/mitre org\/cgi-bin\/cvename.cgi/ {print "https bugzilla redhat com/show_bug.cgi?id=CVE-"$2}'; }
(Alternatively you could automate grepping the OSVDB Id from the http cve.mitre org/data/refs/refmap/source-OSVDB.html map and grep the resultant CVE from http cve.mitre org/data/refs/refmap/source-REDHAT.html.) Second hurdle: finding out who fixed what. Running 'rpm -q --changelog package|grep CVE' might yield results but I do not know if this is standardized in the RH packaging guidelines enough for it to be dependable. Searching RHSA for the CVE might yield some results but what if it is not mentioned? Executing the shell function as "OSVDB2RHCVE 46085" will yield https bugzilla redhat com/show_bug.cgi?id=CVE-2008-2364 which shows the bug was fixed in upstream, patched in F8 / F9 and no asynchronous RHSA will be issued. It is complete (vulnerability description, RH response, listing actions) and it provides alternatives (RPM-ize the tarball or rebuild the F9 .src.rpm).

* Connect the dots. I don't have enough mana according to this forums settings.
unspawn is offline   Reply With Quote
Old 09-27-2009   #3 (permalink)
Just Joined!
 
Join Date: Aug 2009
Posts: 13
Totally forgot to mention there's the "yum-security" plugin taking args like --cve, --bz and --advisory. Way easier.
unspawn 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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:01 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2