CWE-291: Reliance on IP Address for Authentication

Variant Incomplete Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The product uses an IP address for authentication.

扩展描述

IP addresses can be easily spoofed. Attackers can forge the source IP address of the packets they send, but response packets will return to the forged IP address. To see the response packets, the attacker has to sniff the traffic between the victim machine and the forged IP address. In order to accomplish the required sniffing, attackers typically attempt to locate themselves on the same subnet as the victim machine. Attackers may be able to circumvent this requirement by using source routing, but source routing is disabled across much of the Internet today. In summary, IP address verification can be a useful part of an authentication scheme, but it should not be the single factor required for authentication.

常见后果

影响范围: Access Control Non-Repudiation

技术影响: Hide Activities Gain Privileges or Assume Identity

说明: Malicious users can fake authentication information, impersonating any IP address.

潜在缓解措施

阶段: Architecture and Design

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

观察示例

参考: CVE-2022-30319

S-bus functionality in a home automation product performs access control using an IP allowlist, which can be bypassed by a forged IP address.

引入模式

阶段 说明
Architecture and Design COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic.

适用平台

编程语言
Not Language-Specific (Undetermined)

分类映射

分类名称 条目ID 条目名称 映射适配度
CLASP - Trusting self-reported IP address -
关键信息

CWE ID: CWE-291

抽象级别: Variant

结构: Simple

状态: Incomplete

利用可能性: High

相关弱点
相关攻击模式
CAPEC-4