Skip to content

fix #1617 validate author can only unassociate their own files in do_revisions#5393

Open
ajrbyers wants to merge 1 commit into
masterfrom
b-1617-do-revisions-file-validation
Open

fix #1617 validate author can only unassociate their own files in do_revisions#5393
ajrbyers wants to merge 1 commit into
masterfrom
b-1617-do-revisions-file-validation

Conversation

@ajrbyers

@ajrbyers ajrbyers commented Jul 15, 2026

Copy link
Copy Markdown
Member

Closes #1617

In the do_revisions view an author completing a revision request could POST an arbitrary file_id to the delete handler. The view fetched the file with get_object_or_404 and passed it straight to files.delete_file with no check that the file was one the author is meant to manage.

@ajrbyers ajrbyers closed this Jul 15, 2026
@ajrbyers ajrbyers reopened this Jul 15, 2026
@ajrbyers
ajrbyers requested a review from mauromsl July 15, 2026 15:09
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.

Author can "delete" any article file from the do_revision view

2 participants