VYPR
Moderate severityNVD Advisory· Published Jun 29, 2021· Updated Aug 3, 2024

Default client side session signing key is highly predictable

CVE-2021-29480

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.

PackageAffected versionsPatched versions
io.ratpack:ratpack-sessionMaven
< 1.9.01.9.0

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.