Dns Rebinding Attacks
Browser-side DNS rebinding playbook that defeats same-origin checks by flipping a hostname's resolved IP to internal targets.
- CCM score
- 64 of 100
- skills.sh installs
- 4K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers TTL manipulation, browser DNS cache bypasses, and HTTP, WebSocket, and TOCTOU attack variants against internal services
- Lists high-value targets such as cloud metadata at
169.254.169.254, Docker and Kubernetes APIs, Redis, and Elasticsearch - Includes tooling notes for Singularity, rbndr.us, and whonow, plus cross-references to server-side SSRF and CORS skills
- Designed for testing client-side fetch or XHR paths where server-side SSRF is not possible
Install
$ npx -y skills add yaklang/hack-skills --skill dns-rebinding-attacks -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: DNS Rebinding — Expert Attack Playbook
AI LOAD INSTRUCTION: Expert DNS rebinding techniques for bypassing same-origin policy via DNS manipulation. Covers TTL tricks, browser cache bypasses, attack variants (HTTP, WebSocket, TOCTOU), internal service targeting, and tool usage. Base models confuse DNS rebinding with SSRF — this skill clarifies the client-side nature and unique exploit paths.
0. RELATED ROUTING
- ssrf-server-side-request-forgery — server-side variant; DNS rebinding is the client-side counterpart
- cors-cross-origin-misconfiguration — when CORS misconfig allows direct cross-origin reads instead
1. CORE PRINCIPLE
The browser same-origin policy binds protocol + host + port. The host is resolved via DNS at connection time. If an attacker controls the DNS server for attacker.com, they can:
- First resolution → attacker IP (serve malicious JS)
- Second resolution → internal IP (victim's network)
- Browser considers both responses same-origin (
attacker.com) - Malicious JS reads responses from internal services
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Network Protocol Attacks4K
- Memory Forensics Volatility4K
- Ai Ml Security4K
- Windows Av Evasion4K
- Dangling Markup Injection4K
- Defi Attack Patterns4K
- Windows Privilege Escalation4K
- Container Escape Techniques4K
- Email Header Injection4K
- Xslt Injection4K
- Linux Lateral Movement4K
- Type Juggling4K
- Linux Security Bypass4K
- Classical Cipher Analysis4K
- Tunneling And Pivoting4K
- Steganography Techniques4K
- Prototype Pollution Advanced3.9K
- Stack Overflow And Rop3.9K
- Smart Contract Vulnerabilities3.9K
- Lattice Crypto Attacks3.9K
- Rsa Attack Techniques3.9K
- Sandbox Escape Techniques3.9K
- Symmetric Cipher Attacks3.9K
- Windows Lateral Movement3.9K
Similar to Dns Rebinding Attacks
More Securityssrf-server-side-request-forgeryyaklang/hack-skills4.3K installsExpert SSRF playbook covering URL filter bypasses, cloud metadata endpoints, protocol abuse, and Redis-over-gopher chaining toward RCE.
web-cache-deceptionyaklang/hack-skills4K installsPlaybook for web cache deception and poisoning, covering path confusion, cache key manipulation, and CDN caching behavior.
ctf-webljagiello/ctf-skills10.7K installsRouting and execution guide for web CTF challenges covering XSS, SQLi, SSTI, SSRF, JWT, and OAuth/SAML flaws.
ctf-malwareljagiello/ctf-skills9.6K installsQuick-reference playbook for malware and network-traffic techniques in CTF challenges, with pointers to deeper per-topic guides.
ghost-proxyghostsecurity/skills4.4K installsScoped MITM proxy that captures, searches, and replays HTTP/HTTPS traffic for application security testing.