Posted by Daniel Owens via Fulldisclosure on Nov 01 Description The Apache Struts2 Core 7.4.0 and below performs session token comparisons cryptographically insecure early-exit comparison functions (e.g., `!=`, `memcmp`, byte-by-byte loops with `break`) that return as soon as the first mismatched by
Briefing
Written from the coverage below · deepseek-v4.1-flash
A Full Disclosure post reports that Apache Struts2 Core 7.4.0 and below compares session tokens using non-constant-time functions, leaking timing information that reveals how many leading bytes match. The researcher attributes the flaw to early-exit comparisons such as !=, memcmp and byte loops with break.
Why it mattersApplications relying on Struts token validation may permit attackers to predict or forge session tokens over repeated timed requests, undermining authentication guarantees.
ActionUpgrade to Apache Struts 7.4.1 or later, or otherwise replace non-constant-time token comparisons with constant-time equivalents.
Coverage
1 article