Rocket.Chat · Report #943737
Arbitrary file read in Rocket.Chat-Desktop
Validstatus
mediumseverity
14upvotes
6 Feb 2022disclosed
How it was found
Description: Rocket.Chat-Desktop is vulnerable to arbitrary file read.
Releases Affected:
- Rocket.Chat-Desktop-Client: < v3.0.0-develop
Steps To Reproduce (by setting up a malicious server):
- Go to
Administration » Layout » Custom Scripts » Custom Script for Logged In Users - Insert the following script
window.open('file://c:/windows/system32/drivers/etc/hosts').eval('alert(document.body.innerText);'); - Click
Save changes - Open Rocket.Chat-Desktop and connect to the server
- A new window and an alert containing the contents of
c:/windows/system32/drivers/etc/hostswill pop up.
Suggested mitigation
- Set
popupstofalse[src » component » electron » WebViewComponent.js (line 16)].
Impact
Arbitrary file read in Rocket.Chat-Desktop