Skip to content

Security: Make the personal file ownership filter a conjunction - #8937

Merged
AngelFQC merged 1 commit into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-8g72-66mc-3c4j
Aug 25, 2026
Merged

Security: Make the personal file ownership filter a conjunction#8937
AngelFQC merged 1 commit into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-8g72-66mc-3c4j

Conversation

@AngelFQC

@AngelFQC AngelFQC commented Aug 24, 2026

Copy link
Copy Markdown
Member

The personal files collection filtered by owner with orWhere, so the ownership predicate would stop being mandatory as soon as any earlier WHERE existed on the query. It now uses andWhere, like the shared branch of the same extension and the sibling message tag extension.

Verified against a running instance. As the reporter states, there is no observable leak with the current extension order: a second student sees totalItems=0 on the collection, plain, filtered by title and filtered by resourceNode.parent, gets 403 on the item and is redirected away from the download, both before and after the change; the owner keeps seeing their file in all of those. The operator itself is what is wrong — building the same query with a WHERE already present yields 'WHERE title LIKE ? OR creator_id = ?' with orWhere against 'WHERE title LIKE ? AND creator_id = ?' with andWhere. debug:container confirms why it is dormant today: every Chamilo collection extension runs unprioritised while FilterExtension sits at -16, so this predicate is currently always the first WHERE.

Refs GHSA-8g72-66mc-3c4j

@AngelFQC
AngelFQC merged commit 18e1c71 into chamilo:master Aug 25, 2026
3 of 7 checks passed
@AngelFQC
AngelFQC deleted the security/auto-fix-GHSA-8g72-66mc-3c4j branch August 25, 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