CWE-1004 — Sensitive Cookie Without 'HttpOnly' Flag
CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Incomplete |
| Likelihood of exploit | Medium |
Description
The product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.
Common consequences
- Confidentiality: Read Application Data
- Integrity: Gain Privileges or Assume Identity
Mitigations
Implementation — Leverage the HttpOnly flag when setting a sensitive cookie in a response.
References
- CWE page: https://cwe.mitre.org/data/definitions/1004.html
- CWE list: https://cwe.mitre.org/data/index.html