CWE-565: Reliance on Cookies without Validation and Integrity Checking

BaseIncomplete

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.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-565: Reliance on Cookies without Validation and Integrity Checking?+

CWE-565: Reliance on Cookies without Validation and Integrity Checking is a Common Weakness Enumeration (CWE) entry maintained by MITRE. 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.

What are the security consequences of Reliance on Cookies without Validation and Integrity Checking?+

If exploited, CWE-565 (Reliance on Cookies without Validation and Integrity Checking) it can compromise Confidentiality, Integrity, Availability and Access Control, leading to outcomes such as Modify Application Data, Execute Unauthorized Code or Commands and Gain Privileges or Assume Identity.

How do you prevent or mitigate Reliance on Cookies without Validation and Integrity Checking?+

Recommended mitigations for CWE-565 include: Avoid using cookie data for a security-related decision. 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. Add integrity checks to detect tampering.

What are real-world examples of Reliance on Cookies without Validation and Integrity Checking?+

MITRE documents real CVEs mapped to CWE-565, including CVE-2008-5784. 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-565 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

CWE-565: Reliance on Cookies without Validation and Integrity Checking | CWE Lookup | InventiveHQ