Bug 709871 (CVE-2011-2179)

Summary: CVE-2011-2179 nagios: XSS in configuration command expansion
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jlieskov, jose.p.oliveira.oss, lemenkov, linux, ondrejj
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-19 21:49:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 690880, 709874    
Bug Blocks: 734555    

Description Vincent Danen 2011-06-01 20:14:46 UTC
It was reported [1],[2] that an XSS vulnerability exists in Nagios when viewing the configuration and using command expansion, as there is no input validation for "expand" in config.c(gi):

View Config -> Command Expansion -> To expand -> <script>alert(String.fromCharCode(88,83,83))</script>
View Config -> Command Expansion -> To expand -> <body onload=alert(666)>

or 

http://www.example.com/nagios/cgi-bin/config.cgi?type=command&expand=<script>alert(String.fromCharCode(88,83,83))</script> [^]
http://www.example.com/nagios/cgi-bin/config.cgi?type=command&expand=<body [^] onload=alert(666)>

[1] http://tracker.nagios.org/view.php?id=224
[2] http://seclists.org/bugtraq/2011/Jun/17

Comment 1 Vincent Danen 2011-06-01 20:18:16 UTC
Created nagios tracking bugs for this issue

Affects: fedora-all [bug 709874]
Affects: epel-6 [bug 690880]

Comment 2 Jan Lieskovsky 2011-06-05 10:42:09 UTC
The CVE identifier of CVE-2011-2179 has been assigned to this issue:
http://www.openwall.com/lists/oss-security/2011/06/02/6

Comment 3 Huzaifa S. Sidhpurwala 2011-09-07 09:12:12 UTC
Upstream patch:
http://nagios.svn.sourceforge.net/viewvc/nagios?view=revision&revision=1741