---
title: "CWE-290: Authentication Bypass by Spoofing"
url: https://radicalnotion.ai/cwe/cwe-290
type: cwe
description: "This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-290: Authentication Bypass by Spoofing

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 834
- **Of those, in CISA KEV:** 8
- **New in 2026:** 367
- **CWE catalog version:** 4.21

## Description

This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Architecture and Design | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | This weakness can allow an attacker to access resources which are not otherwise accessible without proper authentication. |

## Demonstrative examples

### Example 1

The following code authenticates users.

Bad code:

```java
String sourceIP = request.getRemoteAddr();
if (sourceIP != null && sourceIP.equals(APPROVED_IP)) {
    authenticated = true;
}
```

The authentication mechanism implemented relies on an IP address for source validation. If an attacker is able to spoof the IP, they may be able to bypass the authentication mechanism.

### Example 2

Both of these examples check if a request is from a trusted address before responding to the request.

Bad code:

```c
sd = socket(AF_INET, SOCK_DGRAM, 0);
serv.sin_family = AF_INET;
serv.sin_addr.s_addr = htonl(INADDR_ANY);
servr.sin_port = htons(1008);
bind(sd, (struct sockaddr *) & serv, sizeof(serv));

while (1) {
    memset(msg, 0x0, MAX_MSG);
    clilen = sizeof(cli);
    if (inet_ntoa(cli.sin_addr)==getTrustedAddress()) {
        n = recvfrom(sd, msg, MAX_MSG, 0, (struct sockaddr *) & cli, &clilen);
    }
}
```

Bad code:

```java
while(true) {
    DatagramPacket rp=new DatagramPacket(rData,rData.length);
    outSock.receive(rp);
    String in = new String(p.getData(),0, rp.getLength());
    InetAddress clientIPAddress = rp.getAddress();
    int port = rp.getPort();

    if (isTrustedAddress(clientIPAddress) & secretKey.equals(in)) {
        out = secret.getBytes();
        DatagramPacket sp =new DatagramPacket(out,out.length, IPAddress, port); outSock.send(sp);
    }
}
```

The code only verifies the address as stored in the request packet. An attacker can spoof this address, thus impersonating a trusted client.

### Example 3

The following code samples use a DNS lookup in order to decide whether or not an inbound request is from a trusted host. If an attacker can poison the DNS cache, they can gain trusted status.

Bad code:

```c
struct hostent *hp;struct in_addr myaddr;
char* tHost = "trustme.example.com";
myaddr.s_addr=inet_addr(ip_addr_string);

hp = gethostbyaddr((char *) &myaddr, sizeof(struct in_addr), AF_INET);
if (hp && !strncmp(hp->h_name, tHost, sizeof(tHost))) {
    trusted = true;
} else {
    trusted = false;
}
```

Bad code:

```java
String ip = request.getRemoteAddr();
InetAddress addr = InetAddress.getByName(ip);
if (addr.getCanonicalHostName().endsWith("trustme.com")) {
    trusted = true;
}
```

Bad code:

```c#
IPAddress hostIPAddress = IPAddress.Parse(RemoteIpAddress);
IPHostEntry hostInfo = Dns.GetHostByAddress(hostIPAddress);
if (hostInfo.HostName.EndsWith("trustme.com")) {
    trusted = true;
}
```

IP addresses are more reliable than DNS names, but they can also be spoofed. Attackers can easily 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.

## Observed examples

| CVE | Description |
| --- | --- |
| 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. |
| CVE-2009-1048 | VOIP product allows authentication bypass using 127.0.0.1 in the Host header. |

## Real CVEs with this weakness (sample of 12 of 834)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-54085 | Redfish Authentication Bypass | critical | 10.0 | - | Yes | 2025-03-11 |
| CVE-2026-102764 | Improper Origin Validation in Internal Messaging Components of BeyondTrust Remote Support | critical | 9.3 | - | Yes | 2026-10-15 |
| CVE-2024-4358 | Registration Authentication Bypass Vulnerability | critical | 9.3 | - | Yes | 2024-05-29 |
| CVE-2022-24112 | apisix/batch-requests plugin allows overwriting the X-REAL-IP header | critical | 9.3 | - | Yes | 2022-02-11 |
| CVE-2022-23131 | Unsafe client-side session storage leading to authentication bypass/instance takeover via Zabbix Frontend with configured SAML | critical | 9.3 | - | Yes | 2022-01-13 |
| CVE-2021-36942 | Windows LSA Spoofing Vulnerability | critical | 9.3 | - | Yes | 2021-08-12 |
| CVE-2026-104935 | Ivanti Connect Secure Authentication Bypass by Spoofing Vulnerability | high | 8.6 | - | Yes | 2026-10-13 |
| CVE-2023-50224 | TP-Link TL-WR841N dropbearpwd Improper Authentication Information Disclosure Vulnerability | high | 7.1 | - | Yes | 2024-05-03 |
| CVE-2026-69843 | Microsoft Fabric Elevation of Privilege Vulnerability | critical | 10.0 | - | No | 2026-09-17 |
| CVE-2026-76423 | Cisco ISE API Authentication Bypass Vulnerability | critical | 10.0 | - | No | 2026-09-16 |
| CVE-2026-54782 | CoreWCF: Authentication bypass in CoreWCF SAML 1.1 / 2.0 token signature validation | critical | 10.0 | - | No | 2026-07-08 |
| CVE-2026-48567 | Azure HorizonDB Elevation of Privilege Vulnerability | critical | 10.0 | - | No | 2026-06-04 |

## Related attack patterns (CAPEC)

- [CAPEC-21](https://radicalnotion.ai/capec/capec-21): Exploitation of Trusted Identifiers
- [CAPEC-22](https://radicalnotion.ai/capec/capec-22): Exploiting Trust in Client
- [CAPEC-459](https://radicalnotion.ai/capec/capec-459): Creating a Rogue Certification Authority Certificate
- [CAPEC-461](https://radicalnotion.ai/capec/capec-461): Web Services API Signature Forgery Leveraging Hash Function Extension Weakness
- [CAPEC-473](https://radicalnotion.ai/capec/capec-473): Signature Spoof
- [CAPEC-476](https://radicalnotion.ai/capec/capec-476): Signature Spoofing by Misrepresentation
- [CAPEC-59](https://radicalnotion.ai/capec/capec-59): Session Credential Falsification through Prediction
- [CAPEC-60](https://radicalnotion.ai/capec/capec-60): Reusing Session IDs (aka Session Replay)
- [CAPEC-667](https://radicalnotion.ai/capec/capec-667): Bluetooth Impersonation AttackS (BIAS)
- [CAPEC-94](https://radicalnotion.ai/capec/capec-94): Adversary in the Middle (AiTM)

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-287](https://radicalnotion.ai/cwe/cwe-287) | Improper Authentication |
| Parent | [CWE-1390](https://radicalnotion.ai/cwe/cwe-1390) | Weak Authentication |
| Child | [CWE-291](https://radicalnotion.ai/cwe/cwe-291) | Reliance on IP Address for Authentication |
| Child | [CWE-293](https://radicalnotion.ai/cwe/cwe-293) | Using Referer Field for Authentication |
| Child | [CWE-350](https://radicalnotion.ai/cwe/cwe-350) | Reliance on Reverse DNS Resolution for a Security-Critical Action |
| Peer | [CWE-602](https://radicalnotion.ai/cwe/cwe-602) | Client-Side Enforcement of Server-Side Security |
| Related | [CWE-358](https://radicalnotion.ai/cwe/cwe-358) | Improperly Implemented Security Check for Standard |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Authentication bypass by spoofing | - | - |

## Frequently asked questions

### What is CWE-290?

This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.

### What CVEs are caused by CWE-290?

834 recorded CVEs are attributed to CWE-290, including CVE-2024-54085, CVE-2026-102764 and CVE-2024-4358. 8 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### What are the consequences of CWE-290?

Exploiting CWE-290 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity.

### Is CWE-290 actively exploited?

Yes. 8 CWE-290 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 834 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/290.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-290). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
