Insecure Cookie Handling Vulnerability in Gradle Enterprise by Gradle
CVE-2022-27225
6.5MEDIUM
What is CVE-2022-27225?
Gradle Enterprise versions prior to 2021.4.3 exhibit a flaw in their cookie handling mechanism related to cleartext data transmission. The issue arises during the sign-in process, where Keycloak, used for identity management, sets browser cookies that provide session persistence. For compatibility with older versions of Safari, a duplicate cookie lacking the 'Secure' attribute is created. This allows the cookie to be transmitted over HTTP connections, making user login sessions vulnerable to session hijacking. An attacker impersonating the Gradle Enterprise host can exploit this by enticing users to click on HTTP links, potentially capturing their login credentials and session data.
