Property
Languageruby
Severitylow
CWECWE-1004: Sensitive Cookie Without ‘HttpOnly’ Flag
OWASPA05:2021 - Security Misconfiguration
Confidence LevelLow
Impact LevelLow
Likelihood LevelLow

Description#

The application configures Rails’ cookie-based session store with the ‘HttpOnly’ or ‘Secure’ flags set to false. This means session cookies may be accessible to client-side scripts or transmitted over insecure connections.

Impact#

Without these flags, attackers could steal session cookies through cross-site scripting (XSS) or network interception, potentially hijacking user sessions and gaining unauthorized access to sensitive user data or actions.