CWE-350

Reliance on Reverse DNS Resolution for a Security-Critical Action

High

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.

Potential Impact

How to Fix

Architecture and Design

Use other means of identity verification that cannot be simply spoofed. Possibilities include a username/password or certificate.

Implementation

Perform proper forward and reverse DNS lookups to detect DNS spoofing.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-350 vulnerabilities in your codebase.

Get Security Assessment