CWEweakness

CWE-565 Reliance on Cookies without Validation and Integrity Checking

Official page ↗
Abstraction
Base
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

The product relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user.

Common consequences

• Confidentiality, Integrity, Availability: Modify Application Data, Execute Unauthorized Code or Commands — Attackers can easily modify cookies, within the browser or by implementing the client-side code outside of the browser. Reliance on cookies without detailed validation and integrity checking can allow attackers to bypass authentication, conduct injection attacks such as SQL injection and cross-site scripting, or otherwise modify inputs in unexpected ways. • Access Control: Gain Privileges or Assume Identity — It is dangerous to use cookies to set a user's privileges. The cookie can be manipulated to escalate an attacker's privileges to an administrative level.

Potential mitigations

• [Architecture and Design] Avoid using cookie data for a security-related decision. • [Implementation] Perform thorough input validation (i.e.: server side validation) on the cookie data if you're going to use it for a security related decision. • [Architecture and Design] Add integrity checks to detect tampering. • [Architecture and Design] Protect critical cookies from replay attacks, since cross-site scripting or other attacks may allow attackers to steal a strongly-encrypted cookie that also passes integrity checks. This mitigation applies to cookies that should only be valid during a single transaction or session. By enforcing timeouts, you may limit the scope of an attack. As part of your integrity check, use an unpredictable, server-side value that is not exposed to the client.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2008-5784: e-dating application allows admin privileges by setting the admin cookie to 1.

Related

Attack pattern · CAPEC (3)

  • CAPEC-226 Session Credential Falsification through Manipulation attack pattern
  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies attack pattern
  • CAPEC-39 Manipulating Opaque Client-based Data Tokens attack pattern

Observed example · CVE (1)

  • CVE-2008-5784 V3 Chat - Profiles/Dating Script 3.0.2 allows remote attackers to bypass authentication and gain administrative access by setting the admin… vulnerability

Child of · CWE (3)

  • CWE-602 Client-Side Enforcement of Server-Side Security weakness
  • CWE-642 External Control of Critical State Data weakness
  • CWE-669 Incorrect Resource Transfer Between Spheres weakness

Referenced by CAPEC · weakness (3)

  • CAPEC-226 Session Credential Falsification through Manipulation attack pattern
  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies attack pattern
  • CAPEC-39 Manipulating Opaque Client-based Data Tokens attack pattern

Referenced by CVE · weakness (85)

  • CVE-2026-119128 ZITADEL 4.0.0 before 4.19.5 contains an authentication bypass vulnerability in the Login V2 UI that allows unauthenticated attackers to set… vulnerability
  • CVE-2026-118661 Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. vulnerability
  • CVE-2026-112352 Sunhillo SureLine before 9.1.5 contains an authentication bypass vulnerability that allows an unauthenticated remote attacker to… vulnerability
  • CVE-2026-111749 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. vulnerability
  • CVE-2026-101287 Authentication bypass vulnerability in Stela, versions prior to 1.60.1, due to the use of a cookie named “authProcess” without validating… vulnerability
  • CVE-2026-76186 Apache Airflow Keycloak provider: from Airflow 3.3 the Keycloak auth manager takes a user's identity from the signed Airflow session token… vulnerability
  • CVE-2026-69214 Http4s is a Scala interface for HTTP services. vulnerability
  • CVE-2026-69215 Http4s is a Scala interface for HTTP services. vulnerability
  • CVE-2026-85181 CAT uses Java String.hashCode as the sole integrity check for session cookies without server-side keying, allowing attackers to forge valid… vulnerability
  • CVE-2026-75757 Reliance on Cookies without Validation and Integrity Checking vulnerability in ash-project ash_admin lets an attacker who controls a… vulnerability
  • CVE-2026-53871 Hermes WebUI before 0.51.368 contains an authorization bypass vulnerability in the get_profile_cookie() function that accepts… vulnerability
  • CVE-2026-8337 Concrete CMS 9.5.0 and below is vulnerable to IDOR in surveys. vulnerability
  • CVE-2026-0257 Authentication bypass vulnerabilities in the GlobalProtect portal and gateway of Palo Alto Networks PAN-OS® software allows the attacker to… vulnerability
  • CVE-2026-39963 Serendipity is a PHP-powered weblog engine. vulnerability
  • CVE-2026-39324 Rack::Session is a session management implementation for Rack. vulnerability
  • CVE-2026-5130 The Debugger & Troubleshooter plugin for WordPress was vulnerable to Unauthenticated Privilege Escalation in versions up to and including… vulnerability
  • CVE-2014-125112 Plack::Middleware::Session::Cookie versions through 0.21 for Perl allows remote code execution. vulnerability
  • CVE-2022-50926 WAGO 750-8212 PFC200 G2 2ETH RS firmware contains a privilege escalation vulnerability that allows attackers to manipulate user session… vulnerability
  • CVE-2025-65212 An issue was discovered in NJHYST HY511 POE core before 2.1 and plugins before 0.1. vulnerability
  • CVE-2025-14440 The JAY Login & Register plugin for WordPress is vulnerable to authentication bypass in versions up to, and including, 2.4.01. vulnerability
  • CVE-2021-47706 COMMAX Biometric Access Control System 1.0.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to… vulnerability
  • CVE-2025-64447 A reliance on cookies without validation and integrity checking vulnerability in Fortinet FortiWeb 8.0.0 through 8.0.1, FortiWeb 7.6.0… vulnerability
  • CVE-2025-48980 In Brave Browser Desktop versions prior to 1.83.10 that have the split view feature enabled, the "Open Link in Split View" context menu… vulnerability
  • CVE-2025-59247 Azure PlayFab Elevation of Privilege Vulnerability vulnerability
  • CVE-2025-31120 NamelessMC is a free, easy to use & powerful website software for Minecraft servers. vulnerability
  • CVE-2024-55211 An issue in Think Router Tk-Rt-Wr135G V3.0.2-X000 allows attackers to bypass authentication via a crafted cookie. vulnerability
  • CVE-2025-2395 The U-Office Force from e-Excellence has an Improper Authentication vulnerability, allowing unauthenticated remote attackers to use a… vulnerability
  • CVE-2024-9820 The WP 2FA with Telegram plugin for WordPress is vulnerable to Two-Factor Authentication Bypass in versions up to, and including, 3.0. vulnerability
  • CVE-2024-9970 The FlowMaster BPM Plus system from NewType has a privilege escalation vulnerability. vulnerability
  • CVE-2024-21583 Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package… vulnerability
Show all 85 ›

Referenced by CWE · child of (1)

  • CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision weakness

Referenced by OWASP · mapped cwe (2)

  • A08:2025 Software or Data Integrity Failures Top 10 2025
  • A08:2021 Software and Data Integrity Failures Top 10 2021