Descrizione
Cookie Missing HttpOnly and SameSite Attributes vulnerability affects HCL ZIE for Web as the the application sets sensitive session cookies (e.g., JSESSIONID) without the HttpOnly and SameSite attributes, although the Secure flag is enabled. This exposes cookies to potential theft through XSS attacks and increases the risk of CSRF attacks, as cookies may be included in cross-site requests. Configure HttpOnly to prevent JavaScript access and SameSite (Strict or Lax, as appropriate) to restrict cross-site cookie transmission.
Tipo di vulnerabilità
CWE-1275
Sensitive Cookie with Improper SameSite Attribute
The SameSite attribute for sensitive cookies is not set, or an insecure value is used.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità, Non ripudio, Controllo degli accessi |
Modificare i dati dell’applicazione |
Come si previene
Sviluppo
Set the SameSite attribute of a sensitive cookie to Lax or Strict. This instructs the browser to apply this cookie only to same-domain requests, which provides a good Defense in Depth against CSRF attacks. When the Lax value is in use, cookies are also sent for top-level cross-domain navigation via HTTP GET, HEAD, OPTIONS, and TRACE methods, but not for other HTTP methods that are more likely to cause side-effects of state mutation.
Tutte le 12 CVE di tipo CWE-1275, con andamento e prevenzione