Description
The Secure attribute for sensitive cookies in HTTPS sessions is not set.
Potential Impact
- Confidentiality: Read Application Data
How to Fix
Implementation
Always set the secure attribute when the cookie should be sent via HTTPS only.
Detection Methods
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without havin...
Related Weaknesses
References
View on MITRE CWE Database →