CWE一覧に戻る
CWE-350

セキュリティ・クリティカルな行為におけるDNS逆解決への依存

Reliance on Reverse DNS Resolution for a Security-Critical Action
脆弱性 レビュー中
JA

この製品はIPアドレスに対してDNSの逆解析を実行してホスト名を取得し、セキュリティ上の判断を行いますが、IPアドレスが本当にホスト名に関連付けられているかどうかは適切に確認されません。

DNS 名は簡単になりすましたり、誤報告したりすることができ、信頼できる DNS サーバーが侵害された場合、製品がそれを検出することは困難であるため、 DNS 名は有効な認証メカニズムではない。

本製品が IP アドレスの DNS 逆解析を実行する際、攻撃者がその IP アドレスの DNS サーバを制御している場合、攻撃者はサーバに任意のホスト名を返させることができる。その結果、攻撃者は認証を迂回したり、ログファイルに誤ったホスト名を記録させて活動を隠したり、その他の攻撃を行ったりできる可能性があります。

攻撃者は、(1)DNSサーバーを侵害し、そのレコードを変更する(DNSキャッシュポイズニングと呼ばれることもある)か、(2)自分のIPアドレスに関連付けられたDNSサーバーを合法的に制御することで、DNS名を詐称することができる。

EN

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.

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.

Scope: Access Control / Impact: Gain Privileges or Assume Identity; Bypass Protection Mechanism
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.
MITRE公式ページ — CWE-350