MantisBT: master-2.26 d6febe31

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-01-06 08:02 master-2.26 29d701e8
Affected Issues  0033426: User not authenticated when following link from notification email
Changeset

Change $g_cookie_samesite default to 'Lax'

The original value was 'Strict' for security purposes, the intention
being to provide the strongest possible protection against CSRF attacks.

Unfortunately, this actually prevents the user's session cookie from
being recognized when clicking a link from a notification email, causing
MantisBT to open an anonymous session even when the user is logged in.

Changing the default value to 'Lax' fixes the issue.

Fixes 0033426

(cherry picked from commit 14e7eccb07abb8def19968da9118b7dc89996efa)

mod - config_defaults_inc.php Diff File