CWEweakness
CWE-291 Reliance on IP Address for Authentication
High
Official page ↗
- Abstraction
- Variant
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- High
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product uses an IP address for authentication.
Common consequences
• Access Control, Non-Repudiation: Hide Activities, Gain Privileges or Assume Identity — IP addresses can be easily spoofed. Malicious users can fake authentication information, impersonating any IP address.
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, or to compromise an intermediary such as a router or proxy. Attackers may be able to circumvent this requirement by using source routing, but source routing is disabled across much of the Internet today.
Potential mitigations
• [Architecture and Design] Use other means of identity verification that cannot be simply spoofed. Possibilities include a username/password or certificate. While IP address verification can be a useful part of an authentication scheme, but it should not be the single factor required for authentication.
Observed examples
• 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.
Related
Attack pattern · CAPEC (1)
- CAPEC-4 Using Alternative IP Address Encodings attack pattern
Observed example · CVE (1)
- CVE-2022-30319 Saia Burgess Controls (SBC) PCD through 2022-05-06 allows Authentication bypass. vulnerability
Child of · CWE (2)
Referenced by CAPEC · weakness (1)
- CAPEC-4 Using Alternative IP Address Encodings attack pattern
Referenced by CVE · weakness (11)
- CVE-2026-86485 In JetBrains YouTrack before 2026.2.18634 iP spoofing via HTTP headers allowed forged Bitbucket webhooks vulnerability
- CVE-2026-3690 OpenClaw Canvas Authentication Bypass Vulnerability. vulnerability
- CVE-2026-4252 A vulnerability was identified in Tenda AC8 16.03.50.11. vulnerability
- CVE-2025-66602 A vulnerability has been found in FAST/TOOLS provided by Yokogawa Electric Corporation. vulnerability
- CVE-2025-59101 Instead of typical session tokens or cookies, it is verified on a per-request basis if the originating IP address has once successfully… vulnerability
- CVE-2025-34202 Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to 25.2.169 and Application prior to 25.2.1518 (VA and SaaS deployments)… vulnerability
- CVE-2024-23309 The LevelOne WBR-6012 router with firmware R0.40e6 has an authentication bypass vulnerability in its web application due to reliance on… vulnerability
- CVE-2024-32765 A vulnerability has been reported to affect Network & Virtual Switch. vulnerability
- CVE-2023-7211 A vulnerability was found in Uniway Router 2.0. vulnerability
- CVE-2023-35906 IBM Aspera Faspex 5.0.5 could allow a remote attacked to bypass IP restrictions due to improper access controls. vulnerability
- CVE-2022-46415 DJI Spark 01.00.0900 allows remote attackers to prevent legitimate terminal connections by exhausting the DHCP IP address pool. vulnerability
Referenced by OWASP · mapped cwe (1)
- A07:2025 Authentication Failures Top 10 2025