SecurityContext

CVE-2022-27225: Gradle Enterprise - Session Hijacking

  • Cve: CVE-2022-27225
  • Name: Gradle Enterprise - Session Hijacking
  • Description: Gradle Enterprise before 2021.4.3 relies on cleartext data transmission in some situations. It uses Keycloak for identity management services. During the sign-in process, Keycloak sets browser cookies that effectively provide remember-me functionality. For backwards compatibility with older Safari versions, Keycloak sets a duplicate of the cookie without the Secure attribute, which allows the cookie to be sent when accessing the location that cookie is set for via HTTP. This creates the potential for an attacker (with the ability to impersonate the Gradle Enterprise host) to capture the login session of a user by having them click an http:// link to the server, despite the real server requiring HTTPS.
  • Impact: Attackers can capture user login sessions by intercepting cookies sent over HTTP, leading to session hijacking and impersonation.
  • Remediation: Update to version 2021.4.3 or later, and ensure cookies are set with the Secure attribute.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Epss score: 0.0054
  • Epss percentile: 0.46299
  • Assignee: [email protected]
  • Published at: 2022-03-16T01:15:08Z
  • Age in days: 1714
  • Modified at: 2026-06-17T04:36:31Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-27225
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-311Missing Encryption of Sensitive Data

References

UrlSourceTags
https://security.gradle.com/advisory/2022-03nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gradle:enterprise>= 2020.1, < 2021.4.3nonvd/v1/products/gradle/enterprise

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts