Skip to content
XSS Disclosed report Intermediate

XSS (leads to arbitrary file read in Rocket.Chat-Desktop)

sectex Follow

Originally disclosed on HackerOne

  • Triaged in 43 hours
  • Fixed in 31 days
  • Disclosed after 2 months

Description: Rocket.Chat allows administrative users to customize the home body. Since <script> tags are removed, I think that running scripts should not be allowed. However, event handlers are not removed, allowing you to inject your own scripts.

Releases Affected:

  • Rocket.Chat-Desktop-Client: v2.15.5
  • Rocket.Chat-Server: v2.0.0
  • Apps-Engine-Version: v1.5.2

Steps To Reproduce (from initial installation to vulnerability):

  • Go to Administration » Layout » Content
  • Set Home Body to <img src=0 onerror="alert(0)"/>
  • Visit /home

Arbitrary file read in Rocket.Chat-Desktop

  • Go to Administration » Layout » Content
  • Set Home Body to <iframe src="file://c:/windows/system32/drivers/etc/hosts" onload="alert(iframe.contentDocument.body.innerHTML)" id="iframe"></iframe>
  • Visit /home

Supporting Material/References:

  • admin-panel.png
    admin-panel.png From the original on HackerOne
  • alert.png
    alert.png
  • arbitrary_file_read.mp4

Impact

  • Attackers can execute scripts which leads to arbitrary file read and rce in Rocket.Chat-Desktop

The original report as published on HackerOne, by sectex. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A low-severity XSS bug in Rocket.Chat. HackerOne made it public on 2 January 2020.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by sectex

View all

5 more disclosed reports, best first.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.