Skip to content

fix: check that slices belong to the permission checked article - #6617

Merged
gharlan merged 1 commit into
5.xfrom
fix-slice-article-check
Aug 3, 2026
Merged

fix: check that slices belong to the permission checked article#6617
gharlan merged 1 commit into
5.xfrom
fix-slice-article-check

Conversation

@gharlan

@gharlan gharlan commented Aug 3, 2026

Copy link
Copy Markdown
Member

The writing slice operations checked the permission for the article given in the request, but acted on an independent slice reference from the same request. The content page also did not check the clang permission.

Details are intentionally brief here — the relevant parts are only mentioned in the commit message for now and will be described properly once released.

The writing slice operations derived the category permission from the article given in the request, while
the operation itself acted on an independent slice reference from the same request. Nothing verified that
the addressed slice actually belongs to that article, so combining an own article with a foreign slice id
allowed editors to delete, (de)activate, move and - with a matching module/template constellation -
overwrite slices in categories they have no permission for.

The content page additionally did not check the clang permission at all, in contrast to all api functions,
so slices could be added, edited and deleted in languages the user has no access to.
@rex-bot rex-bot added the bug label Aug 3, 2026
@gharlan gharlan added this to the REDAXO 5.21.4 milestone Aug 3, 2026
@gharlan
gharlan merged commit fcac449 into 5.x Aug 3, 2026
18 checks passed
@gharlan
gharlan deleted the fix-slice-article-check branch August 3, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants