Timing attack on HMAC signature comparison in Apache Tapestry
Critical severity
GitHub Reviewed
Published
Sep 26, 2019
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Package
Affected versions
>= 5.4, < 5.4.5
Patched versions
5.4.5
Description
Published by the National Vulnerability Database
Sep 16, 2019
Reviewed
Sep 23, 2019
Published to the GitHub Advisory Database
Sep 26, 2019
Last updated
Jan 27, 2023
The code which checks HMAC in form submissions used String.equals() for comparisons, which results in a timing side channel for the comparison of the HMAC signatures. This could lead to remote code execution if an attacker is able to determine the correct signature for their payload. The comparison should be done with a constant time algorithm instead.
References