MantisBT: master-2.28 b6faebd5

Author Committer Branch Timestamp Parent
dombn dregad master-2.28 2026-05-14 08:20 master-2.28 399605af
Affected Issues  0037130: login_password_page.php: CSRF validation fails when called via auth_reauthenticate() (since 2.28.2)
Changeset

Fix CSRF validation failure in reauthenticate flow

auth_reauthenticate() redirects to login_password_page.php via GET,
bypassing login_page.php which normally generates the CSRF token.
The form_security_validate() call therefore always fails with
ERROR #2800, making re-authentication impossible.

Fix: read $f_reauthenticate before the CSRF check and skip validation
for that path. The token rendered in the form still protects the
subsequent password submission via login.php.

Fixes 0037130, PR https://github.com/mantisbt/mantisbt/pull/2220

mod - login_password_page.php Diff File