CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
The Secure attribute for sensitive cookies in HTTPS sessions is not set.
How it's found
Sensitive Cookie in HTTPS Session Without 'Secure' Attribute is a specific, narrowly defined instance of a broader pattern. Testers confirm it with targeted code review and a proof-of-concept input that exercises the exact code path this weakness describes.
Consequences
- Read Application Data: Omitting the secure flag makes it possible for the user agent to send the cookies in plaintext over an HTTP session.
Mitigations
- Implementation: Always set the secure attribute when the cookie should be sent via HTTPS only.
How TurboPentest tests for this (white-box)
This weakness (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) is caught by white-box static analysis when you connect a GitHub repo: IntegSec's Opengrep SAST rule pack carries 10 rules for it, flagging the issue directly in your source code as part of the pentest.
Frequently asked questions
What is CWE-614?
The Secure attribute for sensitive cookies in HTTPS sessions is not set.
How do you find Sensitive Cookie in HTTPS Session Without 'Secure' Attribute?
Sensitive Cookie in HTTPS Session Without 'Secure' Attribute is a specific, narrowly defined instance of a broader pattern. Testers confirm it with targeted code review and a proof-of-concept input that exercises the exact code path this weakness describes.
What is the impact of CWE-614?
Read Application Data: Omitting the secure flag makes it possible for the user agent to send the cookies in plaintext over an HTTP session.
Does TurboPentest test for Sensitive Cookie in HTTPS Session Without 'Secure' Attribute?
This weakness (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) is caught by white-box static analysis when you connect a GitHub repo: IntegSec's Opengrep SAST rule pack carries 10 rules for it, flagging the issue directly in your source code as part of the pentest.
Related CWEs
Written and reviewed by
Michel Chamberland - Founder & CEO, IntegSec
CISSP, OSCP, OSCE, CEH, GIAC, CCSK · 20+ years in offensive security
Michel has spent 20+ years on offensive security teams including IBM X-Force Red and Trustwave SpiderLabs, leading penetration tests, red team engagements, and breach response for Fortune 500 customers. He is the founder of IntegSec and the architect of TurboPentest.
Find these issues before an attacker does
TurboPentest runs an agentic AI pentest against your target and reports findings with proof, from $99 per target.
Start a pentest