Permissions at the artifact level are not correctly verified when an artifact update is submitted with a follow-up comment.
Impact
Users might receive email notification with information they should not have access to.
CVSSv3.1 score: 4.8 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N)
Exploitation
Given a project with following configuration
Bug_Reporters group with user_1, user_2
Bug_Managers group with user_3
Given a tracker with following tracker permissions
all_users, registered_users, project_members => no permissions
Bug_Managers => are admin of tracker
Bug_Reporters => can access artifacts they submit
Given user_2 goes in "my notifications" and check "Notify on all updates"
When user_1 submit or update an artifact with a comment
Then user_2 receive a full snapshot of the artifact.
References
CWE-280
CVE-2024-46988