Authorization bypass through user-controlled key in Discourse - #VU166166
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote privileged user to copy or delete S3 files outside the temporary upload folder, including files belonging to other sites sharing the bucket.
The vulnerability exists due to authorization bypass through user-controlled keys in Discourse external upload records when restoring backups on sites using direct S3 uploads with allow_restore enabled. A remote privileged user can restore a crafted backup containing external upload records referencing files outside the temporary upload folder to cause unauthorized file copying or deletion.