MantisBT: master-2.26 7055731d
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
dregad | community | master-2.26 | 2024-02-20 16:10 | master-2.26 2e1c8148 |
Affected Issues | 0019381: CVE-2024-23830: Host header attack vulnerability | |||
Changeset | Merge pull request from GHSA-mcqj-7p29-9528
$g_path is empty by default, and should be defined in config_inc.php. Document the risk in PHPDoc and Admin Guide. Move the code that initializes $g_path's default value from Detect if $g_path was defaulted, and if yes alert the user in:
Fixes 0019381, CVE-2024-23830, GHSA-mcqj-7p29-9528
Empty $g_path remains just a warning about the security risk. This is an improvement on the original patch for CVE-2024-23830. The admin is now able to set $g_path when installing MantisBT. A default A check of the provided URL is performed during install stage 2, and an The URL is then stored as $g_path in the generated config_inc.php file This greatly reduces the risk of the admin forgetting to set $g_path Fixes 0019381
Reuse the existing functionality implemented for database prefix/suffix,
|
|||
mod - admin/check/check_paths_inc.php | Diff File | |||
mod - admin/install.php | Diff File | |||
mod - config_defaults_inc.php | Diff File | |||
mod - core.php | Diff File | |||
mod - docbook/Admin_Guide/en-US/config/path.xml | Diff File | |||
mod - js/install.js | Diff File | |||
mod - lang/strings_english.txt | Diff File | |||
mod - login_page.php | Diff File |