MantisBT: master-2.27 25256886

Author Committer Branch Timestamp Parent
dregad dregad master-2.27 2025-10-20 11:05 master-2.27 917b1497
Affected Issues  0036503: Ability to change the default project of a user
Changeset

Check user access before setting default project

Using crafted query parameters, it was possible to call set_project.php
with a project_id that the user does not have access to, resulting in
an invalid default project stored in the user's preferences.

This caused an ERR_TOO_MANY_REDIRECTS error when accessing
bug_report_page.php while the current project is ALL_PROJECTS.

We now check that the user has access to the project before setting it
as default, and throw an access denied if not.

Fixes 0036503

mod - set_project.php Diff File