.. / CVE-2021-28149

Exploit for Hongdian H8922 3.0.5 Devices - Local File Inclusion (CVE-2021-28149)

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.

Nuclei Template

View the template here CVE-2021-28149.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-28149.yaml
Copy

References:

https://github.com/ARPSyndicate/cvemon
https://ssd-disclosure.com/ssd-advisory-hongdian-h8922-multiple-vulnerabilities/
https://github.com/ArrestX/--POC
https://nvd.nist.gov/vuln/detail/CVE-2021-28149
http://en.hongdian.com/Products/Details/H8922