Skip to content
Memory corruption Disclosed report Beginner

Android App Crashes while sending message to users/ on channel

A crafted message sent to a Rocket.Chat channel or private chat causes the Android app to crash when the victim opens it. An attacker could repeatedly crash the app for any user who views the malicious message.

legalizenepal Follow

Originally disclosed on HackerOne

  • Disclosed after 12 months

Description

I found a security vulnerability in Rocket's latest android app by which I was able to remotely crash any user’s app instantly just by just sending a simple message in private or in channel. The vulnerability require the victim open the message.

Devices and Versions

Rocket.Chat.Android version: (e.g. 4.5.1) Mobile device model and OS version: (tested on 👍 -- " Android 6.0, 8.0, 10.0"), probably any other android version

Steps to reproduce

Create new #test channel Send POC Code onto the channel Open Mobile App App gets crashed

POC

Crafted code to crash mobile app

https://i.postimg.cc/zvBWdMzT/Screenshot-20200320-112405.png

Message Preview

https://i.postimg.cc/fbCJ6KgC/Screenshot-20200320-112541.png

App Gets Crashed

https://i.postimg.cc/26J8DXdQ/Screenshot-20200320-112711.png

Code Link

https://pastebin.com/raw/JEDcC5Yr

There is no such problem in iOS client and rocket web

Impact

An attacker could crash the internal chat user's phone, everytime he/she opens the rocket chat , i.e posting crafted code on #general channel

Hi, i even posted the issue on github, before i got to know about rocket chat on H1, but issue still not fixed, so just tryna keep you updated guys.

https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/1907

The original report as published on HackerOne, by legalizenepal. 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.

How it worked

Root cause

Likely the Android app does not safely handle the crafted message content, causing an unhandled exception or crash when rendering it.

Impact

An attacker could crash the victim's Android app every time they open the message, but the issue does not affect iOS or the web client.

What the attacker needed

Victim uses Android app; victim opens the crafted message

How it was found

  1. Create a new test channel.
  2. Send the crafted proof-of-concept code to the channel.
  3. Open the mobile app.
  4. The app crashes.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

A denial-of-service bug means someone can make an app stop working. Here, sending a specially crafted chat message makes the Android app crash as soon as the victim opens it. The attacker does not gain access to data, but they can repeatedly disrupt the victim's use of the app.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.