HexBrain

Rocket.Chat · Report #3687142

Unauthenticated reading of every file via livechat auth and predicting MongoDB ObjectId()

Validstatus
criticalseverity
49upvotes
15 Jun 2026disclosed

Summary

Protected file downloads at /file-upload/:fileId/:name authorize livechat access using rc_room_type=l with rc_rid+rc_token, but the authorization path does not verify that rc_rid matches the requested file's rid. Furthermore, :fileId is predictable via sequential MongoDB IDs, and :name can be anything, allowing unauthenticated discovery of all uploaded files.

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original