Authorizations are not properly verified when updating the branch prefix used by the GitLab repository integration.
Impact
Authenticated users can change the branch prefix of any of the GitLab repository integration they can see vie the REST endpoint PATCH /gitlab_repositories/{id}
. This action should be restricted to Git administrators.
CVSSv3.1 score: 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
References
CWE 285
CVE-2022-39233