dns-rebinding-attacks

Document DNS rebinding attacks that bypass SOP and expose internal services.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill dns-rebinding-attacks
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dns-rebinding-attacks
Source: https://github.com/yaklang/hack-skills/tree/main/skills/dns-rebinding-attacks
Command: npx skills add https://github.com/yaklang/hack-skills --skill dns-rebinding-attacks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DNS rebinding attacks exploit the browser's same-origin policy by manipulating DNS resolutions to cause a victim's browser to access internal services. This Skill provides a detailed playbook for understanding, simulating, and defending against such client-side network attacks in authorized testing environments.

Core Features & Use Cases

  • TTL manipulation techniques to defeat DNS caching in browsers.
  • Attack variants including Classic HTTP rebinding, WebSocket rebinding, TOCTOU, and multiple A records.
  • Defense considerations such as host header validation and private network access controls; use cases include auditing SOP protections and internal service exposure.

Quick Start

Assess a target by loading a controlled page that triggers DNS resolution and observe subsequent requests to internal services after DNS rebinding in a safe, authorized test environment.

Frequently Asked Questions about dns-rebinding-attacks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does DNS rebinding bypass browser same-origin policy to access internal services?▼

DNS rebinding bypasses same-origin policy by manipulating DNS resolutions, specifically TTL manipulation, causing the victim's browser to access internal services. It exploits client-side DNS behavior and browser cache policies to make subsequent requests to private network endpoints.

What is the best way to test DNS rebinding attack variants like WebSocket and TOCTOU?▼

The best way to test DNS rebinding variants is simulating Classic HTTP, WebSocket, TOCTOU, and multiple A records attacks in authorized environments. This evaluates SOP bypass efficacy and internal service exposure by loading controlled pages that trigger DNS resolution.

Can I evaluate host header validation defenses against DNS rebinding attacks?▼

Yes, you can evaluate host header validation and private network access controls as defense considerations. Testing these mechanisms determines their efficacy in preventing server-side requests originating from manipulated client-side DNS behavior during authorized penetration testing.

How do I perform a DNS rebinding penetration test safely?▼

Perform DNS rebinding penetration testing safely by operating within authorized environments, loading a controlled page to trigger DNS resolution, and observing subsequent internal service requests after rebinding without unauthorized access to the victim's network.

When do I need to consider DNS cache policies for web security testing?▼

Consider DNS cache policies when evaluating client-side DNS behavior and TTL manipulation techniques to defeat browser caching. Understanding these policies is required when auditing SOP protections and testing internal service exposure against DNS rebinding variants.