DNS 重绑定
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://tldfyi.com/iframe/glossary/dns-rebinding/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://tldfyi.com/glossary/dns-rebinding/
Add a dynamic SVG badge to your README or docs.
[](https://tldfyi.com/glossary/dns-rebinding/)
Use the native HTML custom element.
DNS重绑定是一种利用浏览器同源策略漏洞的攻击。攻击者首先将域名解析到其控制的服务器,然后迅速将该域名的[[dns|DNS]]记录重绑定到内部IP地址(如192.168.1.1)。这会诱使浏览器将攻击者的网站视为本地网络设备,从而允许恶意JavaScript向通常无法从公共互联网访问的内部服务发送请求。DNS重绑定可用于攻击路由器、智能家居设备和企业内部服务。[[dnssec|DNSSEC]]无法防止重绑定;缓解措施包括带重绑定保护的DNS-over-HTTPS、短否定TTL和防火墙规则。
示例
A malicious website changes its DNS record from a public IP to 192.168.1.1 mid-session, allowing the attacker's JavaScript to configure the victim's home router through the browser.