CAPEC-275
DNS Rebinding
An adversary serves content whose IP address is resolved by a DNS server that the adversary controls. After initial contact by a web browser (or similar client), the adversary changes the IP address to which its name resolves, to an address within the target organization that is not publicly accessible. This allows the web browser to examine this internal address on behalf of the adversary.
Abstraction
Detailed
Typical severity
Very High
Likelihood of attack
High
Understand the attack
What is this attack pattern?
Extended description
Execution flow
How does the attack proceed, step by step?
Explore
Identify potential DNS rebinding targets
Techniques used
- Adversary uses Web advertisements to attract the victim to access adversary's DNS. Explore the versions of web browser or flash players in HTTP request.
Experiment
Establish initial target access to adversary DNS
Rebind DNS resolution to target address
Determine exploitability of DNS rebinding access to target address
Exploit
Access & exfiltrate data within the victim's security zone
Techniques used
- Adversary attempts to use victim's browser as an HTTP proxy to other resources inside the target's security zone. This allows two IP addresses placed in the same security zone.
- Adversary tries to scan and access all internal hosts in victim's local network by sending multiple short-lived IP addresses.
Requirements
What does the attack require?
Prerequisites
- The target browser must access content server from the adversary controlled DNS name. Web advertisements are often used for this purpose. The target browser must honor the TTL value returned by the adversary and re-resolve the adversary's DNS name after initial contact.
Skills required
- Medium: Setup DNS server and the adversary's web server. Write a malicious script to allow the victim to connect to the web server.
Resources required
- The adversary must serve some web content that a victim accesses initially. This content must include executable content that queries the adversary's DNS name (to provide the second DNS resolution) and then performs the follow-on attack against the internal system. The adversary also requires a customized DNS server that serves an IP address for their registered DNS name, but which resolves subsequent requests by a single client to addresses internal to that client's network.
Impact
What does a successful attack lead to?
Affected scopes: Integrity
Affected scopes: Confidentiality
Affected scopes: Authorization
Affected scopes: Accountability, Authentication, Authorization, Non-Repudiation
Affected scopes: Access Control, Authorization
Defence
How is it prevented and mitigated?
Real world