DNS Rebinding
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 Rebinding คือการโจมตีที่ใช้ประโยชน์จากนโยบาย same-origin ของเบราว์เซอร์ โดยเริ่มจากการแปลงโดเมนไปยังเซิร์ฟเวอร์ที่ผู้โจมตีควบคุม จากนั้นรีบายด์ระเบียน [[dns|DNS]] ของโดเมนไปยัง IP address ภายใน (เช่น 192.168.1.1) อย่างรวดเร็ว ทำให้เบราว์เซอร์เข้าใจผิดว่าเว็บไซต์ของผู้โจมตีคืออุปกรณ์ในเครือข่ายท้องถิ่น และอนุญาตให้ JavaScript ที่เป็นอันตรายส่งคำขอไปยังบริการภายในที่ปกติไม่สามารถเข้าถึงได้จากอินเทอร์เน็ตสาธารณะ DNS Rebinding สามารถใช้โจมตีเราเตอร์ อุปกรณ์บ้านอัจฉริยะ และบริการภายในองค์กร [[dnssec|DNSSEC]] ไม่สามารถป้องกัน rebinding ได้ วิธีบรรเทาได้แก่ DNS-over-HTTPS พร้อมการป้องกัน rebinding, TTL เชิงลบที่สั้น และกฎ firewall
ตัวอย่าง
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.