Open redirect open.rocket.chat/file-upload/ID/filename.svg

Disclosed: 2019-10-31 15:20:30 By w2w To rocket_chat
Medium
Vulnerability Details
**Summary:** Open redirect through svg file upload **Description:** When you upload a file to a chat, the link to it will look like https://open.rocket.chat/file-upload/ID/filename.svg, but the file will be on storage.googleapis.com. We can embed js in our svg and when the victim goes to https://open.rocket.chat/file-upload/6ksXL2Mk4MonCcTpx/svgxss.svg, a redirect to the phishing site will occur, or any other js, for example, downloading the virus, will work. I see you have forbidden downloading html, shtml and php file, I recommend you also prohibit svg, since it is also dangerous. 1. Upload svg file in any chat (attached to the report) 2. Go to open.rocket.chat/file-upload/ID/filename.svg. **PoC:** https://open.rocket.chat/file-upload/6ksXL2Mk4MonCcTpx/svgxss.svg ## Impact open redirect
Actions
View on HackerOne
Report Stats
  • Report ID: 368927
  • State: Closed
  • Substate: resolved
  • Upvotes: 10
Share this report