Descrizione
The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. Prior to 3.0.13 and 2.16.1, ThreadSafeCookieStore validates Domain attributes with domain matching but does not reject public suffixes. A host beneath a suffix such as co.uk can set a cookie for that suffix, after which the shared cookie store sends it to unrelated hosts under the suffix. This can inject or overwrite session-relevant cookie values across origins. This issue is fixed in versions 3.0.13 and 2.16.1.
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