Jmcc0Nn3Ll

#20204de 53,640
12.8CVSS total
Vulnerabilidades · 2
Média
1
Alta
1
PT-2023-5111
5.3
2023-04-18
Eclipse · Jetty · CVE-2023-26049
**Name of the Vulnerable Software and Affected Versions** Jetty versions prior to 9.4.51 Jetty versions prior to 10.0.14 Jetty versions prior to 11.0.14 Jetty versions prior to 12.0.0.beta0 **Description** Nonstandard cookie parsing in Jetty may allow an attacker to smuggle cookies within other cookies, or otherwise perform unintended behavior by tampering with the cookie parsing mechanism. If Jetty sees a cookie VALUE that starts with `"` (double quote), it will continue to read the cookie string until it sees a closing quote -- even if a semicolon is encountered. So, a cookie header such as: `DISPLAY LANGUAGE="b; JSESSIONID=1337; c=d"` will be parsed as one cookie, with the name `DISPLAY LANGUAGE` and a value of `b; JSESSIONID=1337; c=d` instead of 3 separate cookies. This has security implications because if, say, `JSESSIONID` is an `HttpOnly` cookie, and the `DISPLAY LANGUAGE` cookie value is rendered on the page, an attacker can smuggle the `JSESSIONID` cookie into the `DISPLAY LANGUAGE` cookie and thereby exfiltrate it. This is significant when an intermediary is enacting some policy based on cookies, so a smuggled cookie can bypass that policy yet still be seen by the Jetty server or its logging system. **Recommendations** For versions prior to 9.4.51, upgrade to version 9.4.51 or later. For versions prior to 10.0.14, upgrade to version 10.0.14 or later. For versions prior to 11.0.14, upgrade to version 11.0.14 or later. For versions prior to 12.0.0.beta0, upgrade to version 12.0.0.beta0 or later. As a temporary workaround, consider restricting access to sensitive cookies until a patch is available. Avoid using the `DISPLAY LANGUAGE` cookie in a way that could allow an attacker to smuggle other cookies into it.