View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036502 | mantisbt | security | public | 2025-10-15 20:20 | 2025-11-01 07:49 |
| Reporter | d3vpoo1 | Assigned To | atrol | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.27.2 | Fixed in Version | 2.27.2 | ||
| Summary | 0036502: CVE-2025-62520: Ability to copy private project configurations (Columns) | ||||
| Description | Hi Dregad and team, It’s been a while. For this issue, I observed that after setting up a private project and two different roles (Manager and Admin), a Manager without access to the private project can still copy the configuration from the Manage Columns tab. | ||||
| Steps To Reproduce |
| ||||
| Additional Information | MantisBT Version = 2.27.1 GitHub security advisory GHSA-g582-8vwr-68h2 | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
fix-36502.patch (1,042 bytes)
From d0f4e150d0b47a3ef9d2ec66db5c1083b31bb574 Mon Sep 17 00:00:00 2001
From: Roland Becker <roland@atrol.de>
Date: Thu, 16 Oct 2025 09:40:23 +0200
Subject: [PATCH] Add access check when copying column settings
Fixes #36502
---
manage_columns_copy.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/manage_columns_copy.php b/manage_columns_copy.php
index f6d0d740b..cec694954 100644
--- a/manage_columns_copy.php
+++ b/manage_columns_copy.php
@@ -75,6 +75,11 @@ if( $f_manage_page && $t_dst_project_id != ALL_PROJECTS ) {
access_ensure_project_level( MANAGER, $t_dst_project_id );
}
+# only MANAGERS can read global defaults of a project
+if( $f_manage_page && $t_src_project_id != ALL_PROJECTS ) {
+ access_ensure_project_level( MANAGER, $t_src_project_id );
+}
+
# user should only be able to set columns for a project that is accessible.
if( $t_dst_project_id != ALL_PROJECTS ) {
access_ensure_project_level( config_get( 'view_bug_threshold', null, null, $t_dst_project_id ), $t_dst_project_id );
--
2.45.1.windows.1
|
|
|
@d3vpoo1 thanks for reporting |
|
|
Thanks @atrol btw I'm planning to test the application until October 30. I just have a question, I also noticed that I can modify the default project of other user however this default project will only visible to admin side but it cant be seen by user, should I also consider it as security issue? |
|
It should not be possible to alter someone else's data so I would say yes. Please open a separate Issue for tracking, though. @atrol thanks for the patch, I'll have a look and take care of the rest - I have some days off next week so hopefully can devote some time to Mantis. |
|
|
Actions taken:
As mentioned in the PR: shouldn't we call |
|
|
Hi @dregad and team, |
|
|
Hello @d3vpoo1, it works for me, see below... Could you please double check your testing environment, in particular make sure that you are running the code from the PR (commit edf6567e69a88b7eafba6481fa43575692d53ec7).
Testing Notes:
|
|
|
Hi @dregad and team, Confirmed. It now returns “Access Denied” |
|
|
Great, thanks for confirming. |
|
|
CVE-2025-62520 assigned. |
|