PT-2026-56305 · Goploy · Goploy
CVSS v3.1
9.6
Critical
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
goploy version 1.17.5
Description
An Insecure Direct Object Reference (IDOR) exists in the project and project-file handlers. The application fails to verify if a project or project-file belongs to the caller's namespace when processing requests. A user with the
manager role in their own namespace can read, write, or delete files in any project across the installation and modify any project's metadata.Technical details include:
- API Endpoints:
/project/addFile,/project/editFile,/project/removeFile, and/project/edit. - Vulnerable Parameters:
projectId,id, andprojectFileIdprovided in the JSON body. - Function Names:
AddFile(),EditFile(),RemoveFile(), andEdit()incmd/server/api/project/handler.go.
By modifying the git remote URL via the
/project/edit endpoint, an attacker can achieve Remote Code Execution (RCE) during the next deployment, as the system executes git remote set-url on the project's working tree.Recommendations
For version 1.17.5, implement namespace-scoped lookups in the model layer by requiring both the row ID and the
namespace id for all data retrieval operations.As a temporary mitigation, restrict access to the
/project/addFile, /project/editFile, /project/removeFile, and /project/edit endpoints to only trusted administrative users.Exploit
Fix
RCE
Incorrect Authorization
IDOR
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Goploy