.. / CVE-2021-25299

Exploit for Nagios XI 5.7.5 - Cross-Site Scripting (CVE-2021-25299)

Description:

Nagios XI 5.7.5 contains a cross-site scripting vulnerability in the file /usr/local/nagiosxi/html/admin/sshterm.php, due to improper sanitization of user-controlled input. A maliciously crafted URL, when clicked by an admin user, can be used to steal session cookies, or it can be chained with the previous bugs to get one-click remote command execution on the Nagios XI server.

Nuclei Template

View the template here CVE-2021-25299.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-25299.yaml
Copy

References:

https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md
http://nagios.com
https://assets.nagios.com/downloads/nagiosxi/versions.php
https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md#cve-2021-25299
https://nvd.nist.gov/vuln/detail/CVE-2021-25299