id: CVE-2022-29272
info:
name: Nagios XI <5.8.5 - Open Redirect
author: ritikchaddha
severity: medium
description: |
Nagios XI through 5.8.5 contains an open redirect vulnerability in the login function. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
reference:
- https://github.com/sT0wn-nl/CVEs/tree/master/CVE-2022-29272
- https://github.com/4LPH4-NL/CVEs
- https://github.com/sT0wn-nl/CVEs/blob/master/README.md#nagios-xi
- https://nvd.nist.gov/vuln/detail/CVE-2022-29272
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
cve-id: CVE-2022-29272
cwe-id: CWE-601
tags: cve,cve2022,redirect,nagios,nagiosxi
requests:
- raw:
- |
GET /nagiosxi/login.php?redirect=/www.interact.sh HTTP/1.1
Host: {{Hostname}}
- |
POST /nagiosxi/login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
nsp={{nsp_token}}&page=auth&debug=&pageopt=login&redirect=%2Fwww.interact.sh&username={{username}}&password={{password}}&loginButton=Login
host-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/L403F0/1
extractors:
- type: regex
part: body
name: nsp_token
group: 1
internal: true
regex:
- ''
- ""
# Enhanced by md on 2022/10/14