CWE-287: Improper Authentication

ClassDraftExploit Likelihood: High🏆 #12 in Top 25 (2024)

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

View on MITRE
1,117Related CVEs
15.15Severity Score
Back to CWE Lookup

Technical Details

Structure
Simple
Vulnerability Mapping
DISCOURAGED

Applicable To

Languages
Not Language-Specific
Platforms
Not OS-Specific

🏆 CWE Top 25 Historical Ranking

2023:#13
Score: 6.39
1,042 CVEs
2024:#12↑1
Score: 15.15
1,117 CVEs
Trend:Worsening (moved down 1 ranks)

Source-backed guidance

Additional facts reviewed against primary or authoritative security sources.

Combine analysis methods around the CWE-287 trust boundary

MITRE identifies automated static analysis, manual static analysis, binary review, dynamic analysis as applicable detection approaches. Use them to trace every primary, recovery, API, and alternate-protocol path that establishes identity, then prove credentials, authenticators, and protocol state are validated before a session becomes trusted. Require a reproducible trace from the initiating input or state transition to the unsafe behavior, record coverage gaps, and confirm suspected findings dynamically where safe; no single technique establishes complete coverage.

CWE-287: detection methods and operational guidanceMITRE CWE

Treat authentication as a complete, uniform control

Use a maintained authentication framework or protocol and apply the same server-side checks to every login path. Protect credentials and authenticated pages with TLS, return generic failure messages, throttle repeated attempts, and require multifactor or fresh authentication for sensitive actions and after high-risk events. Keep privileged backend accounts out of public-facing login interfaces.

Authentication Cheat SheetOWASP Foundation

Apply lessons from CVE-2023-27351 in PaperCut NG/MF

NVD maps CVE-2023-27351 to CWE-287; an improper authentication condition in the SecurityRequestFilter class could allow a remote attacker to bypass authentication. Use the case to test security filters and route exclusions directly, verify enforcement cannot be skipped through alternate paths, and require authentication again at privileged handlers.

CVE-2023-27351 DetailNIST National Vulnerability Database

Track CWE-287 as #12 in the 2024 CWE Top 25

CWE-287 ranked #12 in the 2024 CWE Top 25 with a score of 15.15. Use this annual evidence to prioritize systemic prevention, detection coverage, and recurring-root-cause metrics across the portfolio, while retaining asset exposure, exploitability, and business impact for severity decisions on individual findings.

2024 CWE Top 25 Most Dangerous Software WeaknessesMITRE CWE

Track CWE-287 as #13 in the 2023 CWE Top 25

CWE-287 ranked #13 in the 2023 CWE Top 25 with a score of 6.39. Use this annual evidence to prioritize systemic prevention, detection coverage, and recurring-root-cause metrics across the portfolio, while retaining asset exposure, exploitability, and business impact for severity decisions on individual findings.

2023 CWE Top 25 Most Dangerous Software WeaknessesMITRE CWE

Attempt authentication through every alternate path

Inventory browser, API, mobile, SSO, recovery, setup, and legacy authentication paths. Test direct requests, missing or malformed credentials, replay, method changes, stale sessions, partial protocol handshakes, and trusted proxy headers. Confirm the server establishes identity only after complete verification and applies the same control to every path that creates or upgrades a session.

Testing for Bypassing Authentication SchemaOWASP Foundation

Frequently Asked Questions

What is CWE-287: Improper Authentication?+

CWE-287: Improper Authentication is a Common Weakness Enumeration (CWE) entry maintained by MITRE. When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Is CWE-287 in the CWE Top 25 Most Dangerous Software Weaknesses?+

Yes. CWE-287 ranked #12 in the CWE Top 25 for 2024, associated with 1,117 CVEs that year. The CWE Top 25 highlights the most common and impactful software weaknesses based on real-world vulnerability data.

What are the security consequences of Improper Authentication?+

If exploited, CWE-287 (Improper Authentication) it can compromise Integrity, Confidentiality, Availability and Access Control, leading to outcomes such as Read Application Data, Gain Privileges or Assume Identity and Execute Unauthorized Code or Commands.

How do you prevent or mitigate Improper Authentication?+

Recommended mitigations for CWE-287 include: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.

How is Improper Authentication detected?+

CWE-287 can be detected using Manual Static Analysis - Binary or Bytecode, Dynamic Analysis with Automated Results Interpretation, Dynamic Analysis with Manual Results Interpretation, Manual Static Analysis - Source Code, Automated Static Analysis - Source Code and Automated Static Analysis. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Improper Authentication?+

CWE-287 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Improper Authentication?+

MITRE documents real CVEs mapped to CWE-287, including CVE-2024-11680, CVE-2022-35248, CVE-2022-36436, CVE-2022-30034 and CVE-2022-29951. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-287 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More

Advertisement