---
title: "CWE-287: Improper Authentication"
url: https://radicalnotion.ai/cwe/cwe-287
type: cwe
description: "When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-287: Improper Authentication

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 4,708
- **Of those, in CISA KEV:** 47
- **New in 2026:** 1,174
- **CWE catalog version:** 4.21

## Description

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

## Alternate terms

- **authentification:** An alternate term is "authentification", which appears to be most commonly used by people from non-English-speaking countries.
- **AuthN:** "AuthN" is typically used as an abbreviation of "authentication" within the web application security community. It is also distinct from "AuthZ," which is an abbreviation of "authorization." The use of "Auth" as an abbreviation is discouraged, since it could be used for either authentication or authorization.
- **AuthC:** "AuthC" is used as an abbreviation of "authentication," but it appears to used less frequently than "AuthN."

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Applicable platforms

**Technologies:** Web Based (Undetermined), ICS/OT (Often)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Confidentiality, Availability, Access Control | Read Application Data, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands | This weakness can lead to the exposure of resources or functionality to unintended actors, possibly providing attackers with sensitive information or even execute arbitrary code. |

## Potential mitigations

### Architecture and Design (Libraries or Frameworks)

Use an authentication framework or library such as the OWASP ESAPI Authentication feature.

## Detection methods

### Automated Static Analysis

Automated static analysis is useful for detecting certain types of authentication. A tool may be able to analyze related configuration files, such as .htaccess in Apache web servers, or detect the usage of commonly-used authentication libraries.

Generally, automated static analysis tools have difficulty detecting custom authentication schemes. In addition, the software's design may include some functionality that is accessible to any user and does not require an established identity; an automated technique that detects the absence of authentication may report false positives.

Effectiveness: Limited

### Manual Static Analysis

This weakness can be detected using tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session.

Manual static analysis is useful for evaluating the correctness of custom authentication mechanisms.

Effectiveness: High. These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules.

### Manual Static Analysis - Binary or Bytecode

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies

Effectiveness: SOAR Partial

### Dynamic Analysis with Automated Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Web Application Scanner
- Web Services Scanner
- Database Scanners

Effectiveness: SOAR Partial

### Dynamic Analysis with Manual Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Fuzz Tester
- Framework-based Fuzzer

Effectiveness: SOAR Partial

### Manual Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Manual Source Code Review (not inspections)

Effectiveness: SOAR Partial

### Automated Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Source code Weakness Analyzer
- Context-configured Source Code Weakness Analyzer

Effectiveness: SOAR Partial

### Automated Static Analysis

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Configuration Checker

Effectiveness: SOAR Partial

### Architecture or Design Review

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

- Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)
- Formal Methods / Correct-By-Construction

Effectiveness: High

## Demonstrative examples

### Example 1

The following code intends to ensure that the user is already logged in. If not, the code performs authentication with the user-provided username and password. If successful, it sets the loggedin and user cookies to "remember" that the user has already logged in. Finally, the code performs administrator tasks if the logged-in user has the "Administrator" username, as recorded in the user cookie.

Bad code:

```perl
my $q = new CGI;

if ($q->cookie('loggedin') ne "true") {
    if (! AuthenticateUser($q->param('username'), $q->param('password'))) {
        ExitError("Error: you need to log in first");
    }
    else {
        # Set loggedin and user cookies.
        $q->cookie(
            -name => 'loggedin',
            -value => 'true'
            );

        $q->cookie(
            -name => 'user',
            -value => $q->param('username')
            );
    }
}

if ($q->cookie('user') eq "Administrator") {
    DoAdministratorTasks();
}
```

Attack code:

```
GET /cgi-bin/vulnerable.cgi HTTP/1.1
Cookie: user=Administrator
Cookie: loggedin=true

[body of request]
```

### Example 2

In January 2009, an attacker was able to gain administrator access to a Twitter server because the server did not restrict the number of login attempts \[REF-236\]. The attacker targeted a member of Twitter's support team and was able to successfully guess the member's password using a brute force attack by guessing a large number of common words. After gaining access as the member of the support staff, the attacker used the administrator panel to gain access to 33 accounts that belonged to celebrities and politicians. Ultimately, fake Twitter messages were sent that appeared to come from the compromised accounts.

### Example 3

In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" \[REF-1283\]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these products were often used in industries such as power, electrical, water, and others, there could even be safety implications.

Multiple vendors did not use any authentication or used client-side authentication for critical functionality in their OT products.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-11680 | File-sharing PHP product does not check if user is logged in during requests for PHP library files under an includes/ directory, allowing configuration changes, code execution, and other impacts. |
| CVE-2022-35248 | Chat application skips validation when Central Authentication Service (CAS) is enabled, effectively removing the second factor from two-factor authentication |
| CVE-2022-36436 | Python-based authentication proxy does not enforce password authentication during the initial handshake, allowing the client to bypass authentication by specifying a 'None' authentication type. |
| CVE-2022-30034 | Chain: Web UI for a Python RPC framework does not use regex anchors to validate user login emails (CWE-777), potentially allowing bypass of OAuth (CWE-1390). |
| CVE-2022-29951 | TCP-based protocol in Programmable Logic Controller (PLC) has no authentication. |
| CVE-2022-29952 | Condition Monitor firmware uses a protocol that does not require authentication. |
| CVE-2022-30313 | Safety Instrumented System uses proprietary TCP protocols with no authentication. |
| CVE-2022-30317 | Distributed Control System (DCS) uses a protocol that has no authentication. |
| CVE-2022-33139 | SCADA system only uses client-side authentication, allowing adversaries to impersonate other users. |
| CVE-2021-3116 | Chain: Python-based HTTP Proxy server uses the wrong boolean operators (CWE-480) causing an incorrect comparison (CWE-697) that identifies an authN failure if all three conditions are met instead of only one, allowing bypass of the proxy authentication (CWE-1390) |
| CVE-2021-21972 | Chain: Cloud computing virtualization platform does not require authentication for upload of a tar format file (CWE-306), then uses .. path traversal sequences (CWE-23) in the file to access unexpected files, as exploited in the wild per CISA KEV. |
| CVE-2021-37415 | IT management product does not perform authentication for some REST API requests, as exploited in the wild per CISA KEV. |
| CVE-2021-35033 | Firmware for a WiFi router uses a hard-coded password for a BusyBox shell, allowing bypass of authentication through the UART port |
| CVE-2020-10263 | Bluetooth speaker does not require authentication for the debug functionality on the UART port, allowing root shell access |
| CVE-2020-13927 | Default setting in workflow management product allows all API requests without authentication, as exploited in the wild per CISA KEV. |
| CVE-2021-35395 | Stack-based buffer overflows in SFK for wifi chipset used for IoT/embedded devices, as exploited in the wild per CISA KEV. |
| CVE-2021-34523 | Mail server does not properly check an access token before executing a Powershell command, as exploited in the wild per CISA KEV. |
| CVE-2020-12812 | Chain: user is not prompted for a second authentication factor (CWE-287) when changing the case of their username (CWE-178), as exploited in the wild per CISA KEV. |
| CVE-2020-10148 | Authentication bypass by appending specific parameters and values to a URI, as exploited in the wild per CISA KEV. |
| CVE-2020-0688 | Mail server does not generate a unique key during installation, as exploited in the wild per CISA KEV. |
| CVE-2017-14623 | LDAP Go package allows authentication bypass using an empty password, causing an unauthenticated LDAP bind |
| CVE-2009-3421 | login script for guestbook allows bypassing authentication by setting a "login\_ok" parameter to 1. |
| CVE-2009-2382 | admin script allows authentication bypass by setting a cookie value to "LOGGEDIN". |
| CVE-2009-1048 | VOIP product allows authentication bypass using 127.0.0.1 in the Host header. |
| CVE-2009-2213 | product uses default "Allow" action, instead of default deny, leading to authentication bypass. |
| CVE-2009-2168 | Chain: redirect without exit (CWE-698) leads to resultant authentication bypass. |
| CVE-2009-3107 | product does not restrict access to a listening port for a critical service, allowing authentication to be bypassed. |
| CVE-2009-1596 | product does not properly implement a security-related configuration setting, allowing authentication bypass. |
| CVE-2009-2422 | authentication routine returns "nil" instead of "false" in some situations, allowing authentication bypass using an invalid username. |
| CVE-2009-3232 | authentication update script does not properly handle when admin does not select any authentication modules, allowing authentication bypass. |
| CVE-2009-3231 | use of LDAP authentication with anonymous binds causes empty password to result in successful authentication |
| CVE-2005-3435 | product authentication succeeds if user-provided MD5 hash matches the hash in its database; this can be subjected to replay attacks. |
| CVE-2005-0408 | Chain: product generates predictable MD5 hashes using a constant value combined with username, allowing authentication bypass. |

## Real CVEs with this weakness (sample of 12 of 4,708)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-20182 | Cisco Catalyst SD-WAN Controller Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2026-05-14 |
| CVE-2026-20127 | Cisco Catalyst SD-WAN Controller Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2026-02-25 |
| CVE-2025-32975 | Quest KACE Systems Management Appliance (SMA) Improper Authentication Vulnerability | critical | 10.0 | - | Yes | 2025-06-24 |
| CVE-2023-35082 | Ivanti Endpoint Manager Mobile (EPMM) and MobileIron Core Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2023-08-15 |
| CVE-2023-35078 | Ivanti Endpoint Manager Mobile Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2023-07-25 |
| CVE-2021-22893 | Ivanti Pulse Connect Secure Use-After-Free Vulnerability | critical | 10.0 | - | Yes | 2021-04-23 |
| CVE-2020-1472 | Netlogon Elevation of Privilege Vulnerability | critical | 10.0 | - | Yes | 2020-08-17 |
| CVE-2020-12812 | Fortinet FortiOS SSL VPN Improper Authentication Vulnerability | critical | 10.0 | - | Yes | 2020-07-24 |
| CVE-2018-10561 | Dasan GPON Routers Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2018-05-04 |
| CVE-2015-1187 | D-Link and TRENDnet Multiple Devices Remote Code Execution Vulnerability | critical | 10.0 | - | Yes | 2017-09-21 |
| CVE-2026-133469 | Xen Orchestra: Empty-object login token | critical | 9.8 | - | Yes | 2026-11-23 |
| CVE-2026-102895 | GPUStack: Authentication bypass via trusted loopback source (reverse-proxy TCP peer or X-GPUStack-Real-IP header) grants unauthenticated admin | critical | 9.8 | - | Yes | 2026-11-04 |

## Related attack patterns (CAPEC)

- [CAPEC-114](https://radicalnotion.ai/capec/capec-114): Authentication Abuse
- [CAPEC-115](https://radicalnotion.ai/capec/capec-115): Authentication Bypass
- [CAPEC-151](https://radicalnotion.ai/capec/capec-151): Identity Spoofing
- [CAPEC-194](https://radicalnotion.ai/capec/capec-194): Fake the Source of Data
- [CAPEC-22](https://radicalnotion.ai/capec/capec-22): Exploiting Trust in Client
- [CAPEC-57](https://radicalnotion.ai/capec/capec-57): Utilizing REST's Trust in the System Resource to Obtain Sensitive Data
- [CAPEC-593](https://radicalnotion.ai/capec/capec-593): Session Hijacking
- [CAPEC-633](https://radicalnotion.ai/capec/capec-633): Token Impersonation
- [CAPEC-650](https://radicalnotion.ai/capec/capec-650): Upload a Web Shell to a Web Server
- [CAPEC-94](https://radicalnotion.ai/capec/capec-94): Adversary in the Middle (AiTM)

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |
| Child | [CWE-290](https://radicalnotion.ai/cwe/cwe-290) | Authentication Bypass by Spoofing |
| Child | [CWE-294](https://radicalnotion.ai/cwe/cwe-294) | Authentication Bypass by Capture-replay |
| Child | [CWE-295](https://radicalnotion.ai/cwe/cwe-295) | Improper Certificate Validation |
| Child | [CWE-306](https://radicalnotion.ai/cwe/cwe-306) | Missing Authentication for Critical Functionality |
| Child | [CWE-307](https://radicalnotion.ai/cwe/cwe-307) | Improper Restriction of Excessive Authentication Attempts |
| Child | [CWE-521](https://radicalnotion.ai/cwe/cwe-521) | Weak Password Requirements |
| Child | [CWE-522](https://radicalnotion.ai/cwe/cwe-522) | Insufficiently Protected Credentials |
| Child | [CWE-640](https://radicalnotion.ai/cwe/cwe-640) | Weak Password Recovery Mechanism for Forgotten Password |
| Child | [CWE-645](https://radicalnotion.ai/cwe/cwe-645) | Overly Restrictive Account Lockout Mechanism |
| Child | [CWE-798](https://radicalnotion.ai/cwe/cwe-798) | Use of Hard-coded Credentials |
| Child | [CWE-1390](https://radicalnotion.ai/cwe/cwe-1390) | Weak Authentication |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Authentication Error | - | - |
| OWASP Top Ten 2007 | Broken Authentication and Session Management | A7 | CWE More Specific |
| OWASP Top Ten 2004 | Broken Authentication and Session Management | A3 | CWE More Specific |
| WASC | Insufficient Authentication | 1 | - |
| ISA/IEC 62443 | Req SR 1.1 | Part 3-3 | - |
| ISA/IEC 62443 | Req SR 1.2 | Part 3-3 | - |
| ISA/IEC 62443 | Req CR 1.1 | Part 4-2 | - |
| ISA/IEC 62443 | Req CR 1.2 | Part 4-2 | - |

## Frequently asked questions

### What is CWE-287?

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

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

4,708 recorded CVEs are attributed to CWE-287, including CVE-2026-20182, CVE-2026-20127 and CVE-2025-32975. 47 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### Is CWE-287 part of the OWASP Top 10?

CWE-287 maps to OWASP Top Ten 2007: Broken Authentication and Session Management (A7) in the OWASP security taxonomy.

### How do you prevent CWE-287?

Use an authentication framework or library such as the OWASP ESAPI Authentication feature.

### How is CWE-287 detected?

Automated Static Analysis: Automated static analysis is useful for detecting certain types of authentication. A tool may be able to analyze related configuration files, such as.htaccess in Apache web servers, or detect the usage of commonly-used authentication libraries.

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

Exploiting CWE-287 can lead to: Read Application Data, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands.

### Is CWE-287 actively exploited?

Yes. 47 CWE-287 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 4,708 recorded CVEs.

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

---

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