Umbra Wiki weakness weakness/CWE-1004
Back to wiki

CWE-1004 — Sensitive Cookie Without 'HttpOnly' Flag

provenance: imported · CWE: CWE-1004

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