CVE-2011-2179: XSS
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
Other sources
Multiple cross-site scripting (XSS) vulnerabilities in config.c in config.cgi in (1) Nagios 3.2.3 and (2) Icinga before 1.4.1 allow remote attackers to inject arbitrary web script or HTML via the expand parameter, as demonstrated by an (a) command action or a (b) hosts action.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-2179?
CVE-2011-2179 has been classified as a medium severity vulnerability due to its potential for cross-site scripting (XSS) attacks.
How do I fix CVE-2011-2179?
To fix CVE-2011-2179, update the Nagios or Icinga software to versions that contain the necessary input validation for command expansion.
What software is affected by CVE-2011-2179?
CVE-2011-2179 affects Nagios versions 3.2.3 and Icinga versions up to 1.4.0, including specific older versions of Icinga.
What type of vulnerability is CVE-2011-2179?
CVE-2011-2179 is classified as a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts.
How can CVE-2011-2179 be exploited?
CVE-2011-2179 can be exploited when an attacker uses command expansion in the Nagios or Icinga configuration view to execute arbitrary JavaScript.