Rocket.Chat · Report #3611837
Unauthenticated file deletion via deleteFileMessage DDP method allows permanent destruction of any uploaded file
Validstatus
highseverity
34upvotes
16 Jun 2026disclosed
Summary
The deleteFileMessage Meteor method permanently deletes any uploaded file by ID without requiring authentication. When called via an unauthenticated DDP WebSocket connection, Meteor.userId() returns null, causing the authorization check to be skipped. Execution falls through to FileUpload.getStore('Uploads').deleteById(fileID), which removes the file from storage and database unconditionally. File IDs are discoverable from public channel message payloads and download URLs.
How it was found
The write-up for this report has not been downloaded yet, or the program disclosed it without one. Read it on HackerOne.