CWE-1004

Sensitive Cookie Without 'HttpOnly' Flag

High

Description

The product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.

Potential Impact

How to Fix

Implementation

Leverage the HttpOnly flag when setting a sensitive cookie in a response.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-1004 vulnerabilities in your codebase.

Get Security Assessment