MantisBT: master-2.26 b12b1f8b

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-05-05 20:18 master-2.26 92d11a01
Affected Issues  0034433: CVE-2024-34077: Account Takeover in Password Reset and Account Registration Feature
Changeset

Use g_reauthentication_expiry to set token timeout

The timeout of the account verification token (TOKEN_ACCOUNT_VERIFY) is
now set based on the $g_reauthentication_expiry config, instead of the
TOKEN_EXPIRY_AUTHENTICATED constant.

With default settings this does not change the system's behavior, but
ensures there is a consistent timeout with other "secure" pages that
require reauthentication and allows the admin to change the timeout,
which was not possible before.

The timeout is applied regardless of whether reauthentication is
enabled or not.

mod - verify.php Diff File