Lucene search
K

Icinga 1.3.0 / 1.4.0 Cross Site Scripting

🗓️ 01 Jun 2011 00:00:00Reported by Stefan SchurtzType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 17 Views

Cross-Site Scripting vulnerability in Icinga 1.3.0 / 1.4.0, no input validation for "expand" in config.c(gi), solution with printf escape_strin

Code
`Advisory: Cross-Site Scripting vulnerability in Icinga  
Advisory ID: SSCHADV2011-005  
Author: Stefan Schurtz  
Affected Software: Successfully tested on: icinga-1.3.0 / icinga-1.4.0  
Vendor URL: http://www.icinga.org  
Vendor Status: Resolved  
CVE-ID: -  
  
==========================  
Vulnerability Description:  
==========================  
  
This is a Cross-Site Scripting vulnerability  
  
==================  
Technical Details:  
==================  
  
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/icinga/cgi-bin/config.cgi?type=command&expand=<script>alert(String.fromCharCode(88,83,83))</script>  
http://www.example.com/icinga/cgi-bin/config.cgi?type=command&expand=<body onload=alert(666)>  
  
=========  
Solution:  
=========  
  
in config.c  
  
< printf("<TR CLASS='dataEven'><TD CLASS='dataEven'>To expand:</TD><TD CLASS='dataEven'>%s",command_args[0]);  
> printf("<TR CLASS='dataEven'><TD CLASS='dataEven'>To expand:</TD><TD CLASS='dataEven'>%s",escape_string(command_args[0]));  
  
This solution doesn't fix the whole problem - see https://dev.icinga.org/issues/1605#note-3 for more information  
  
====================  
Disclosure Timeline:  
====================  
  
01-Jun-2011 - informed developers  
01-Jun-2011 - Release date of this security advisory  
01-Jun-2011 - fixed - Target version: 1.4.1  
01-Jun-2011 - post on BugTraq and Full-disclosure  
  
========  
Credits:  
========  
  
Vulnerability found and advisory written by Stefan Schurtz.  
  
===========  
References:  
===========  
  
http://www.icinga.org  
https://dev.icinga.org/issues/1605  
http://www.rul3z.de/advisories/SSCHADV2011-005.txt  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jun 2011 00:00Current
7.4High risk
Vulners AI Score7.4
17