CWE-350
Reliance on Reverse DNS Resolution for a Security-Critical Action
Description
The product performs reverse DNS resolution on an IP address to obtain the hostname and make a security decision, but it does not properly ensure that the IP address is truly associated with the hostname.
{"xhtml:p":["Since DNS names can be easily spoofed or misreported, and it may be difficult for the product to detect if a trusted DNS server has been compromised, DNS names do not constitute a valid authentication mechanism.","When the product performs a reverse DNS resolution for an IP address, if an attacker controls the DNS server for that IP address, then the attacker can cause the server to return an arbitrary hostname. As a result, the attacker may be able to bypass authentication, cause the wrong hostname to be recorded in log files to hide activities, or perform other attacks.","Attackers can spoof DNS names by either (1) compromising a DNS server and modifying its records (sometimes called DNS cache poisoning), or (2) having legitimate control over a DNS server associated with their IP address."]}
Parent Weaknesses (ChildOf)
Related Weaknesses
Common Consequences
Scope
Impact
Gain Privileges or Assume Identity, Bypass Protection Mechanism
Potential Mitigations
Use other means of identity verification that cannot be simply spoofed. Possibilities include a username/password or certificate.
Perform proper forward and reverse DNS lookups to detect DNS spoofing.
CVE-2001-1488Does not do double-reverse lookup to prevent DNS spoofing.
CVE-2001-1500Does not verify reverse-resolved hostnames in DNS.
CVE-2000-1221Authentication bypass using spoofed reverse-resolved DNS hostnames.
CVE-2002-0804Authentication bypass using spoofed reverse-resolved DNS hostnames.
CVE-2001-1155Filter does not properly check the result of a reverse DNS lookup, which could allow remote attackers to bypass intended access restrictions via DNS spoofing.
CVE-2004-0892Reverse DNS lookup used to spoof trusted content in intermediary.
CVE-2003-0981Product records the reverse DNS name of a visitor in the logs, allowing spoofing and resultant XSS.
Applicable Platforms
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now