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

Description#

A response in your Pyramid application sets a cookie without explicitly setting the ‘httponly’ flag to True. This means the cookie can be accessed by client-side scripts in the browser.

Impact#

If exploited, attackers could steal sensitive cookies through cross-site scripting (XSS), potentially gaining unauthorized access to user accounts or sensitive data. This weakens session security and increases the risk of account compromise.