2022-08-16 16:14:18 +00:00
|
|
|
id: CVE-2022-29272
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Nagios XI < 5.8.5 - Open Redirect
|
|
|
|
author: ritikchaddha
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
In Nagios XI through 5.8.5, an open redirect vulnerability exists in the login function that could lead to spoofing.
|
|
|
|
reference:
|
|
|
|
- https://github.com/sT0wn-nl/CVEs/tree/master/CVE-2022-29272
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-29272
|
2022-08-21 13:23:43 +00:00
|
|
|
- https://github.com/4LPH4-NL/CVEs
|
|
|
|
- https://github.com/sT0wn-nl/CVEs/blob/master/README.md#nagios-xi
|
2022-08-16 16:14:18 +00:00
|
|
|
classification:
|
2022-08-21 13:23:43 +00:00
|
|
|
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
|
2022-08-16 16:14:18 +00:00
|
|
|
cve-id: CVE-2022-29272
|
2022-08-21 13:23:43 +00:00
|
|
|
cwe-id: CWE-601
|
2022-08-21 08:50:07 +00:00
|
|
|
tags: cve,cve2022,redirect,nagios,nagiosxi
|
2022-08-16 16:14:18 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
2022-08-20 07:15:27 +00:00
|
|
|
GET /nagiosxi/login.php?redirect=/www.interact.sh HTTP/1.1
|
2022-08-16 16:14:18 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /nagiosxi/login.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2022-08-20 06:58:45 +00:00
|
|
|
nsp={{nsp_token}}&page=auth&debug=&pageopt=login&redirect=%2Fwww.interact.sh&username={{username}}&password={{password}}&loginButton=Login
|
2022-08-16 16:14:18 +00:00
|
|
|
|
|
|
|
redirects: true
|
|
|
|
max-redirects: 2
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
part: header
|
|
|
|
regex:
|
|
|
|
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/ZDYhFh/1
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
name: nsp_token
|
|
|
|
group: 1
|
2022-08-21 08:50:07 +00:00
|
|
|
internal: true
|
2022-08-16 16:14:18 +00:00
|
|
|
regex:
|
|
|
|
- '<input type="hidden" name="nsp" value="(.*)">'
|
|
|
|
- "<input type='hidden' name='nsp' value='(.*)'>"
|