Property
Languagekotlin
Severitylow
CWECWE-614: Sensitive Cookie in HTTPS Session Without ‘Secure’ Attribute
OWASPA05:2021 - Security Misconfiguration
Confidence LevelLow
Impact LevelLow
Likelihood LevelLow

Description#

The code creates cookies without setting the ‘secure’ flag, allowing them to be sent over unencrypted HTTP connections. This exposes sensitive cookie data to interception by attackers on the network.

Impact#

If exploited, attackers could capture session cookies or other sensitive data via network sniffing, leading to session hijacking or unauthorized access to user accounts. This weakens the application’s overall security, especially when users connect over public or unsecured networks.