Default client side session signing key is highly predictable
Description
Ratpack session module used predictable application startup time as signing key (CVE-2021-29480), enabling session tampering by attackers who can determine that time and write cookies.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ratpack session module used predictable application startup time as signing key (CVE-2021-29480), enabling session tampering by attackers who can determine that time and write cookies.
Vulnerability
Ratpack versions prior to 1.9.0 have a vulnerability in the client-side session module, where the default signing key for session cookies is derived from the application startup time (System.currentTimeMillis() / 10000) [1][3]. The signing key is set in ClientSideSessionConfig.java as the variable secretToken [2]. This weak key generation means that if encryption is not also used (recommended but not enabled by default), an attacker who can determine the application startup time can forge or tamper with session data [1][3].
Exploitation
An attacker needs the ability to determine the application startup time of the target Ratpack application (for example, through information leakage or by observing response headers) and the ability to write cookies to a victim's browser [1][3]. By calculating the signing key from the startup time and forging a valid session cookie, the attacker can modify session data without needing further authentication [3].
Impact
A successful attacker can tamper with client-side session data, potentially impersonating other users or gaining unauthorized privileges [1][3]. The confidentiality and integrity of session information are compromised, though encryption (not enabled by default) would mitigate the impact. The default configuration also causes all sessions to be invalidated on application restart, making it unsuitable for production [3].
Mitigation
The vulnerability is fixed in Ratpack version 1.9.0, which uses a securely randomly generated signing key at application startup [1][3]. As a workaround for earlier versions, users should supply an alternative signing key as per the documentation's recommendation [1][3]. No other workarounds are provided in the available references.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
io.ratpack:ratpack-sessionMaven | < 1.9.0 | 1.9.0 |
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-2cc5-23r7-vc4vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-29480ghsaADVISORY
- github.com/ratpack/ratpack/blob/29434f7ac6fd4b36a4495429b70f4c8163100332/ratpack-session/src/main/java/ratpack/session/clientside/ClientSideSessionConfig.javaghsax_refsource_MISCWEB
- github.com/ratpack/ratpack/security/advisories/GHSA-2cc5-23r7-vc4vghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.