Vulnerability library
Security checkMay 13, 2024

Cookie without Secure Flag

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The absence of the Secure flag in cookies allows them to be transmitted over unencrypted connections, making them vulnerable to interception by attackers conducting man-in-the-middle (MitM) attacks. A cookie with the Secure flag is only sent to the server with encrypted requests over HTTPS, ensuring its confidentiality and integrity.

Recommendation

To enhance security, always set the Secure flag for cookies, especially for those containing sensitive information such as session tokens or user credentials. This ensures that the cookies are only transmitted over secure, encrypted connections, mitigating the risk of interception by attackers.

References

Could your website be exposed too?

SmartScanner can check your website for Cookie without Secure Flag and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024