Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245887 (CVE-2008-5027) - net-analyzer/nagios <3.0.5-r1 authorization bypass & CSRF (CVE-2008-{5027,5028})
Summary: net-analyzer/nagios <3.0.5-r1 authorization bypass & CSRF (CVE-2008-{5027,5028})
Status: RESOLVED FIXED
Alias: CVE-2008-5027
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL: http://git.op5.org/git/?p=nagios.git;...
Whiteboard: B2 [glsa]
Keywords:
Depends on:
Blocks: CVE-2008-6373
  Show dependency tree
 
Reported: 2008-11-06 20:39 UTC by Stefan Behte (RETIRED)
Modified: 2009-07-19 18:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Behte (RETIRED) gentoo-dev Security 2008-11-06 20:39:19 UTC
I got this mail on oss-security today:


We need two CVE id's for the Nagios project.

****** 
1.
Low-privileged users can create a custom form (or use a browser
addon) to bypass authorization and submit commands to the nagios
process that causes other programs to be run with the privileges
of the Nagios process.
Fixed in Nagios 3.0.5.

******

2.
Cross-Site Request Forgery allows remote attackers to submit
commands to the nagios process, thereby causing programs to run
on the Nagios server with the privileges of the Nagios process.
Patch available at
http://git.op5.org/git/?p=nagios.git;a=commit;h=814d8d4d1a73f7151eeed187c0667585d79fea18 

We already have 3.0.5 in tree (unstable). I do not have further information about 2.x, but we can fix 3.x before we know more about 2.x.
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2008-11-06 20:47:01 UTC
I only give it a severity of B2 because you need to have created a low-privileged user; not just everyone can exploit the server. Other opinions/better information on the bugs is welcome.
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-08 13:43:41 UTC
(In reply to comment #1)
> I only give it a severity of B2 because you need to have created a
> low-privileged user; not just everyone can exploit the server. Other
> opinions/better information on the bugs is welcome.
> 

- For Nagios-3 the issue is partially solved with 3.0.5, additional patches are available which implement a basic session handling. These are (unoffically) available as 3.0.5p1, I'd like to wait for Ethan Galstad to make this an offical release (which should happen soonish).
- For Nagios-2 I asked for feedback on the Nagios devel mailinglist [1], it is (partially) affected as well. Some patches are available, session handling isn't backported (yet?). I'd like to wait for more official patches or a new release as well.

Having a fixed Nagios-3 version marked as stable for this bug is not an option for now, so we would need to fix Nagios-2 (but other distributions will need to as well).

[1] http://thread.gmane.org/gmane.network.nagios.devel/5666/focus=5730
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2008-11-09 09:59:07 UTC
white from Debian passed us this on IRC (#oss-sec):

10:10:38 <white> rbu: our nagios3 maintainer came up with this backported patch http://www.formorer.de/~formorer/nagios-security.patch2
10:10:47 <white> rbu: in case your maintainer wants to have a look as well
10:10:09 <white> eugene_: i am sure redhat might find the patch useful as well, maybe you want to forward it? I am afraid there is none for nagios2 yet, but IMHO it's not that severe in nagios2
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2008-11-11 00:33:22 UTC
CVE-2008-5027
The Nagios process in (1) Nagios before 3.0.5 and (2) op5 Monitor before 4.0.1 allows remote authenticated users to bypass authorization checks, and trigger execution of arbitrary programs by this process, via an (a) custom form or a (b) browser addon.

CVE-2008-5028
Cross-site request forgery (CSRF) vulnerability in cmd.cgi in (1) Nagios 3.0.5 and (2) op5 Monitor before 4.0.1 allows remote attackers to send commands to the Nagios process, and trigger execution of arbitrary programs by this process, via unspecified HTTP requests.
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2008-11-26 11:57:09 UTC
ping, please bump.
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-26 17:01:28 UTC
(In reply to comment #5)
> ping, please bump.
> 

pong, i mailed Ethan Galstad to ask if he plans to release new versions somewhat soonish.
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-28 20:29:02 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > ping, please bump.
> > 
> 
> pong, i mailed Ethan Galstad to ask if he plans to release new versions
> somewhat soonish.
> 

no feedback yet - i added nagios-core-3.0.5-r1 which includes the patch by Andreas Ericsson for CVE-2008-5028.
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2008-12-02 17:53:19 UTC
I just bumped to 3.0.6 which has been released some hours ago, according to the ChangeLog this version does also contain those fixes (not using the patch we had in 3.0.5-r1).

Changelog says:
3.0.6 - 12/01/2008
------------------
* Fix for CGI submission of external commands (writing newlines and
submitting service comments)

I plan to get nagios-3 ebuilds marked stable in early january (30 days from now on).
Comment 9 Robert Buchholz (RETIRED) gentoo-dev 2008-12-18 12:15:18 UTC
I found the following thread rather confusing than illuminating, but it explains the provenance of these CVEs:
http://thread.gmane.org/gmane.comp.security.oss.general/1275/
Comment 10 Tobias Scherbaum (RETIRED) gentoo-dev 2008-12-18 17:00:49 UTC
(In reply to comment #9)
> I found the following thread rather confusing than illuminating, but it
> explains the provenance of these CVEs:
> http://thread.gmane.org/gmane.comp.security.oss.general/1275/
> 

from #-security:
17:40 < dertobi123> rbu: nice discussion on that nagios foo ...
17:41 < dertobi123> looks like we'll need to wait for 3.0.7 which finally includes the fixes by andreas ericsson ...
17:41  * dertobi123 wondered why those weren't included in 3.0.6 ... 
Comment 11 Robert Buchholz (RETIRED) gentoo-dev 2009-01-13 17:03:17 UTC
Any news on Nagios 3.0.7 ?
Comment 12 Tobias Scherbaum (RETIRED) gentoo-dev 2009-01-13 17:08:29 UTC
(In reply to comment #11)
> Any news on Nagios 3.0.7 ?
> 

no, and still no reply to my mail sent to Ethan Galstad. *sigh*
Comment 13 Chris Gianelloni 2009-03-30 23:28:25 UTC
How about a fixed 3.0.6 ebuild, then?  Or, how about a fixed 2.12 ebuild?

Many people are using this software on production networks and really would prefer not have security issues like this outstanding when there is a (mostly) known fix.

When can we expect to see a resolution on this?

Thanks
Comment 14 Robert Buchholz (RETIRED) gentoo-dev 2009-07-19 18:15:01 UTC
GLSA 200907-15