Skip to content
Access control Write-up Intermediate

SHAREit Flaw Could Lead to Remote Code Execution

The SHAREit Android app exposed a broadcast receiver that any app could invoke to launch arbitrary activities, and its FileProvider allowed read/write access to the app's private data. An attacker could steal cookies, overwrite files, and potentially execute code by replacing vdex/odex files or installing a malicious APK.

Echo Duan Follow

Published on trendmicro.com

We discovered vulnerabilities in the SHAREit application. These vulnerabilities can be abused to leak a user’s sensitive data, execute arbitrary code, and possibly lead to remote code execution.

Echo Duan, Jesse Chang, on trendmicro.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the app exposed a broadcast receiver without permission checks and misconfigured a FileProvider to allow broad file access.

Impact

An attacker could leak sensitive data, execute arbitrary code with SHAREit's permissions, and potentially achieve remote code execution; however, Chrome blocked the deep link attack, and the sapk installation notification did not appear.

What the attacker needed

Malicious app installed on same device; victim clicks a link (for deep link)

The fix

SHAREit fixed the vulnerabilities; users should update to the latest version.

How it was found

  1. Build a malicious app that sends a broadcast to SHAREit's DefaultReceiver with a nested Intent.
  2. The broadcast causes SHAREit to start an activity that grants URI permissions to the attacker's app.
  3. The attacker's app uses the granted permission to read or write files in SHAREit's data directory.
  4. Replace SHAREit's vdex/odex files with malicious ones to achieve code execution.
  5. Alternatively, use SHAREit's deep link to download and install a malicious APK.

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 write-up has not been written yet. The Original tab links to the source.

SHAREit is a file-sharing app. The researchers found that other apps on the same phone could send it commands to open screens or read its private files. This could let a bad app steal data or install malware.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from SHAREit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.