Skip to content
yaklang avatar

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
View on GitHub

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 -y

Installs 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


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:

  1. First resolution → attacker IP (serve malicious JS)
  2. Second resolution → internal IP (victim's network)
  3. Browser considers both responses same-origin (attacker.com)
  4. 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

Similar to Dns Rebinding Attacks

More Security