Password reset links stayed valid after the password was changed

Affected versions

Description

After a user clicked a password reset link in Kimai and set a new password, the same link could still be used up to 2 times within the next hour.

Why we didn’t request a CVE

The issue is largely theoretical. After the password is changed, the same link can be reused at most two more times, and only within the one-hour window during which the original reset link was issued.

In addition, the link must reach someone other than the legitimate user. If an attacker already has access to the user’s mailbox, the underlying problem lies outside of Kimai.

Solution

Login links now include the user’s password hash in their signature, so any existing link immediately becomes invalid as soon as the password is changed.

Users should update to 2.58.0 or newer.

Credits

First reported in GitHub advisory: GHSA-m492-gv72-xvxj

Top