CWE-784: Reliance on Cookies without Validation and Integrity Checking in a Security Decision
5 CVEs have CWE-784 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 3.011%.
The product uses a protection mechanism that relies on the existence or values of a cookie, but it does not properly ensure that the cookie is valid for the associated user.
Child of CWE-565: Reliance on Cookies without Validation and Integrity Checking
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.
Observed examples
- CVE-2009-1549: Attacker can bypass authentication by setting a cookie to a specific value.
- CVE-2009-1619: Attacker can bypass authentication and gain admin privileges by setting an admin cookie to 1.
- CVE-2009-0864: Content management system allows admin privileges by setting a login cookie to OK.
- CVE-2008-5784: e-dating application allows admin privileges by setting the admin cookie to 1.
- CVE-2008-6291: Web-based email list manager allows attackers to gain admin privileges by setting a login cookie to admin.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-784'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-784'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).