Sensitive Cookie with Improper SameSite Attribute

Property
Languagepython
Severitylow
CWECWE-1275: Sensitive Cookie with Improper SameSite Attribute
OWASPA01:2021 - Broken Access Control
Confidence LevelMedium
Impact LevelLow
Likelihood LevelLow

Description

The Pyramid authentication ticket cookie is missing the recommended ‘samesite=“Lax”’ setting, which means browsers may send this cookie with cross-site requests. Without this protection, your authentication cookies are more vulnerable to being sent to untrusted sites.

Impact

If exploited, an attacker could potentially trick a user’s browser into sending authentication cookies to a malicious site, enabling session hijacking or cross-site request forgery (CSRF) attacks. This can lead to unauthorized access to user accounts and sensitive data within your application.

Sensitive Cookie with Improper SameSite Attribute

Property
Languagepython
Severitylow
CWECWE-1275: Sensitive Cookie with Improper SameSite Attribute
OWASPA01:2021 - Broken Access Control
Confidence LevelMedium
Impact LevelLow
Likelihood LevelLow

Description

The code sets cookies in Pyramid responses without explicitly specifying the ‘samesite’ attribute. Without this, browsers may send cookies with cross-site requests, making them more vulnerable to theft or misuse.

Impact

If exploited, attackers could perform Cross-Site Request Forgery (CSRF) or steal session cookies by tricking users into making requests from another site. This could lead to unauthorized access to user accounts or sensitive data.

Sensitive Cookie with Improper SameSite Attribute

Property
Languagepython
Severitylow
CWECWE-1275: Sensitive Cookie with Improper SameSite Attribute
OWASPA01:2021 - Broken Access Control
Confidence LevelMedium
Impact LevelLow
Likelihood LevelLow

Description

The code sets cookies in a Pyramid application without properly setting the ‘samesite’ attribute to ‘Lax’. This omission makes cookies more vulnerable to being sent with cross-site requests, increasing the risk of unauthorized access.

Impact

If exploited, an attacker could trick a user’s browser into sending your site’s cookies along with cross-site requests, potentially leading to session hijacking or unauthorized actions on behalf of the user. This weakens the application’s defenses against cross-site request forgery (CSRF) and may expose sensitive user data.

Sensitive Cookie Without ‘HttpOnly’ Flag

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

Description

The session cookie is being set without the ‘HttpOnly’ flag enabled. This means client-side scripts can access the cookie, increasing the risk of sensitive information leakage.

Impact

If exploited, an attacker could use cross-site scripting (XSS) to steal session cookies from users, potentially hijacking accounts or gaining unauthorized access to sensitive areas of the application.

Sensitive Cookie Without ‘HttpOnly’ Flag

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

Description

The session cookie is being set without the ‘HttpOnly’ flag, which means client-side scripts can access its value. This omission makes the session cookie vulnerable to theft via cross-site scripting (XSS) attacks.

Impact

If exploited, an attacker could steal session cookies using malicious scripts, potentially hijacking user sessions and gaining unauthorized access to sensitive user accounts or data. This compromises user security and may lead to data breaches.

Sensitive Cookie Without ‘HttpOnly’ Flag

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

Description

The code creates or sets cookies without enabling the ‘HttpOnly’ flag, which allows client-side scripts (like JavaScript) to access these cookies. This makes sensitive information stored in cookies more accessible to attackers using cross-site scripting (XSS) attacks.

Impact

If exploited, attackers could steal authentication tokens or session identifiers from cookies using malicious scripts, potentially allowing them to hijack user accounts or impersonate users. This weakens overall application security and exposes users to account compromise.

Sensitive Cookie Without ‘HttpOnly’ Flag

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

Description

A cookie is being set without the ‘HttpOnly’ flag enabled, which means client-side scripts (like JavaScript) can access its value. This makes sensitive information stored in cookies more exposed to attacks such as cross-site scripting (XSS).

Impact

If an attacker manages to inject malicious scripts into your site, they could steal cookies without the ‘HttpOnly’ flag, potentially hijacking user sessions or accessing sensitive data. This increases the risk of account compromise and data breaches.