Headless Browser: DNS Rebinding

OtherExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  1. Chrome will make 2 DNS requests: A and AAAA records

    • AAAA response with valid Internet IP

    • A response with internal IP

  2. Chrome will connect in priority to the IPv6 (evil.net)

  3. Close IPv6 listener just after first response

  4. Open Iframe to evil.net

  5. Chrome will attempt to connect to the IPv6 but as it will fail it will fallback to the IPv4

  6. From top window, inject script into iframe to exfiltrate content

Comments

No comments yet.