[Paper Review] Injection Attacks Reloaded: Tunnelling Malicious Payloads over DNS
This paper reveals a critical security vulnerability in DNS due to its design principle of transparency, where malicious payloads are encoded into DNS records and exploited to launch injection attacks—such as DNS cache poisoning and remote code execution—against applications and services. The authors demonstrate that over 96% of open DNS resolvers are vulnerable, and these attacks bypass traditional protections like DNSSEC and input sanitization.
The traditional design principle for Internet protocols indicates: "Be strict when sending and tolerant when receiving" [RFC1958], and DNS is no exception to this. The transparency of DNS in handling the DNS records, also standardised specifically for DNS [RFC3597], is one of the key features that made it such a popular platform facilitating a constantly increasing number of new applications. An application simply creates a new DNS record and can instantly start distributing it over DNS without requiring any changes to the DNS servers and platforms. Our Internet wide study confirms that more than 1.3M (96% of tested) open DNS resolvers are standard compliant and treat DNS records transparently. In this work we show that this `transparency' introduces a severe vulnerability in the Internet: we demonstrate a new method to launch string injection attacks by encoding malicious payloads into DNS records. We show how to weaponise such DNS records to attack popular applications. For instance, we apply string injection to launch a new type of DNS cache poisoning attack, which we evaluated against a population of open resolvers and found 105K to be vulnerable. Such cache poisoning cannot be prevented with common setups of DNSSEC. Our attacks apply to internal as well as to public services, for instance, we reveal that all eduroam services are vulnerable to our injection attacks, allowing us to launch exploits ranging from unauthorised access to eduroam networks to resource starvation. Depending on the application, our attacks cause system crashes, data corruption and leakage, degradation of security, and can introduce remote code execution and arbitrary errors. In our evaluation of the attacks in the Internet we find that all the standard compliant open DNS resolvers we tested allow our injection attacks against applications and users on their networks.
Motivation & Objective
- To investigate the security implications of DNS's transparent handling of DNS records, which preserves untrusted data without validation.
- To identify how the lack of input validation in applications consuming DNS data enables new classes of injection attacks.
- To evaluate the effectiveness of existing defenses—like DNSSEC, DNS over HTTPS, and DNS over TLS—against these newly revealed attack vectors.
- To demonstrate that even well-secured systems, including eduroam and LDAP, are vulnerable to these attacks when relying on unvalidated DNS input.
- To advocate for application-level validation of DNS data, challenging the assumption that lower layers (like DNS) should handle all data integrity checks.
Proposed method
- The authors design malicious DNS records with encoded payloads that exploit string interpretation flaws in downstream applications.
- They perform a large-scale Internet measurement of 3 million open DNS resolvers to confirm that 96% preserve DNS record content without modification.
- The attack model involves tricking resolvers into caching malicious records via social engineering (e.g., email, ad networks), which are then delivered to victim applications.
- The researchers implement and test injection attacks on real-world systems, including DNS cache poisoning, XSS, and LDAP injection, using crafted DNS responses.
- They evaluate the resilience of DNSSEC, DoT, DoH, and other defenses, showing they do not prevent these attacks due to the lack of application-level validation.
- The study includes a threat model analysis comparing their attack to DNS rebinding and traditional web injection attacks, highlighting key differences in delivery mechanism and impact.
Experimental results
Research questions
- RQ1To what extent does DNS's transparency in handling records enable new injection attack surfaces?
- RQ2Why do existing defenses like DNSSEC, DoT, and DoH fail to prevent these injection attacks despite their cryptographic and transport-layer protections?
- RQ3How prevalent are these vulnerabilities in real-world DNS infrastructure, particularly among open resolvers?
- RQ4In which applications and services—such as eduroam, LDAP, and DNS caches—are these attacks most effective?
- RQ5What architectural changes are necessary to close the security gap between protocol transparency and application trust in DNS data?
Key findings
- More than 1.3 million (96%) of tested open DNS resolvers are standard-compliant and preserve malicious payloads in DNS records without modification.
- The authors successfully demonstrated DNS cache poisoning attacks against 105,000 open resolvers, exploiting the lack of input validation in downstream applications.
- All tested eduroam services are vulnerable to the injection attacks, enabling unauthorized access and resource exhaustion.
- Traditional input sanitization in web applications does not protect against these attacks because the malicious data is delivered via DNS, not user input.
- DNSSEC does not prevent these attacks in common configurations, as the attack exploits application-level misinterpretation, not DNS data forgery.
- Even modern protections like DNS over HTTPS and DNS over TLS do not mitigate the attacks, as they do not validate the semantic content of DNS records at the application layer.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.