HexBrain

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):

  1. Go to Administration » Layout » Custom Scripts » Custom Script for Logged In Users
  2. Insert the following script window.open('file://c:/windows/system32/drivers/etc/hosts').eval('alert(document.body.innerText);');
  3. Click Save changes
  4. Open Rocket.Chat-Desktop and connect to the server
  5. A new window and an alert containing the contents of c:/windows/system32/drivers/etc/hosts will pop up.

Suggested mitigation

Impact

Arbitrary file read in Rocket.Chat-Desktop

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