Skip to content

Security: MessageAttachment API item GET missing message-ownership check (IDOR) - #8794

Merged
AngelFQC merged 1 commit into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-jf75-vp35-w4mg
Jul 31, 2026
Merged

Security: MessageAttachment API item GET missing message-ownership check (IDOR)#8794
AngelFQC merged 1 commit into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-jf75-vp35-w4mg

Conversation

@AngelFQC

Copy link
Copy Markdown
Member

The MessageAttachment item GET was gated on is_granted('ROLE_USER') only, so any authenticated user could enumerate the auto-increment attachment ids and read other users' private-message attachment metadata (comment, contentUrl, downloadUrl). The operation is now scoped to the parent message's ownership via is_granted('VIEW', object.getMessage()), reusing the existing MessageVoter (sender/receiver check) exactly as the parent Message resource already does.

Refs GHSA-jf75-vp35-w4mg

@AngelFQC
AngelFQC merged commit 6e644bc into chamilo:master Jul 31, 2026
2 of 6 checks passed
@AngelFQC
AngelFQC deleted the security/auto-fix-GHSA-jf75-vp35-w4mg branch July 31, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant