GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-287
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-287: Improper Authentication

Abstraction
Class
OWASP Top 10
A07:2021 (#7)
Exploit Likelihood
High
Related CVEs
31

Description

The product does not sufficiently prove an actor's claimed identity.

How to mitigate

  • Use vetted authentication frameworks, MFA, and constant-time credential comparison.

How attackers exploit CWE-287

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1040Network Sniffingcredential-access · discoveryT1134Access Token Manipulationstealth · privilege-escalationT1185Browser Session HijackingcollectionT1505Server Software ComponentpersistenceT1528Steal Application Access Tokencredential-accessT1539Steal Web Session Cookiecredential-accessT1548Abuse Elevation Control Mechanismprivilege-escalationT1550Use Alternate Authentication Materiallateral-movementT1557Adversary-in-the-Middlecredential-access · collectionT1563Remote Service Session Hijackinglateral-movementT1574Hijack Execution Flowstealth · execution

Step-by-step: how CWE-287 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Executionexecution

    Run attacker-chosen code or commands on the system.

    At risk / what's stolen

    Application logic and the host runtime — an attacker can execute arbitrary code or commands.

    How you defend

    Least-privilege runtime, sandboxing, and safe deserialization/parsing.

  2. 2
    Persistencepersistence

    Stay in even after reboots, patches, or credential changes.

    At risk / what's stolen

    Startup hooks, scheduled tasks, config, and accounts the attacker can plant a backdoor in.

    How you defend

    Integrity monitoring of code, config, and scheduled tasks; short-lived credentials.

  3. 3
    Privilege escalationprivilege-escalation

    Gain higher privileges — from a limited account to admin/root.

    At risk / what's stolen

    Over-permissioned services, weak file/permission boundaries, and setuid paths.

    How you defend

    Drop privileges, enforce least privilege, and lock down file permissions.

  4. 4
    Credential accesscredential-access

    Steal passwords, tokens, keys, and session material.

    At risk / what's stolen

    Passwords, API keys, session tokens, SSH/TLS keys, and secrets in memory, env, or config.

    How you defend

    Secret managers, short-lived tokens, and no secrets in code/env/logs.

  5. 5
    Discoverydiscovery

    Map what else is reachable — hosts, services, data stores, and accounts.

    At risk / what's stolen

    Internal topology, service inventory, and data locations the attacker enumerates.

    How you defend

    Network segmentation and detection of unusual internal scanning.

  6. 6
    Lateral movementlateral-movement

    Pivot from the compromised system to others on the network.

    At risk / what's stolen

    Adjacent servers, databases, and internal services reachable from the foothold.

    How you defend

    Segmentation, per-service auth, and blocking reused credentials across systems.

  7. 7
    Collectioncollection

    Gather the valuable data before taking it out.

    At risk / what's stolen

    Databases, files, customer records, source code, and business data.

    How you defend

    Data-access monitoring, encryption at rest, and least-privilege data access.

This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.

Related CVEs

MediumCVE-2021-32794Security vulnerability in ArchiSteamFarm
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
HighCVE-2026-48526Security vulnerability in pyjwt
HighCVE-2026-48526Security vulnerability in pyjwt
HighCVE-2026-48526Security vulnerability in pyjwt
MediumCVE-2026-42041Security vulnerability in axios
HighCVE-2026-30851Security vulnerability in caddy
HighCVE-2026-52845Security vulnerability in caddy
CriticalCVE-2018-21246Security vulnerability in caddy
MediumCVE-2014-0482Security vulnerability in django
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2013-5123Security vulnerability in pip
MediumCVE-2008-3905Security vulnerability in ruby
HighCVE-2019-16201Security vulnerability in ruby
HighCVE-2017-10784Security vulnerability in ruby
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
MediumCVE-2026-42041Security vulnerability in axios
HighCVE-2026-34531Security vulnerability in flask-httpauth
MediumCVE-2026-42041Security vulnerability in axios
CriticalCVE-2023-27482Security vulnerability in supervisor
CriticalCVE-2016-0733Security vulnerability in ranger
CriticalCVE-2014-2955Security vulnerability in px
HighCVE-2010-4252Security vulnerability in openssl
HighCVE-2022-22576Security vulnerability in curl
LowCVE-2025-15224Security vulnerability in curl
HighCVE-2010-4252Security vulnerability in openssl

References & documentation

  • https://cwe.mitre.org/data/definitions/287.html
  • NVD CWE listing

Weakness facts

IDCWE-287
AbstractionClass
OWASP Top 10A07:2021 (#7)
Exploit LikelihoodHigh
Related CVEs31

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard