Skip to content
RCE Advisory Advanced

(0Day) (Pwn2Own) Xiaomi Mi6 Browser market.install apkPath Command Injection Remote Code Execution Vulnerability

The Xiaomi Mi6 Browser fails to validate the apkPath parameter before using it in file operations, allowing an attacker to execute arbitrary code. A remote attacker can exploit this by having the victim visit a malicious page or open a malicious file.

Robert Miller Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Xiaomi Mi6 Browser. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

MWR Labs - Georgi Geshev and Robert Miller, on the Zero Day Initiative

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

How it worked

Root cause

Likely, the browser's market.install function does not properly validate the apkPath parameter, allowing path manipulation that leads to command injection.

Impact

An attacker could execute arbitrary code in the context of the current process, but user interaction (visiting a malicious page or opening a malicious file) is required.

What the attacker needed

Victim visits a malicious page; or opens a malicious file

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.

This is a bug in a web browser app on a Xiaomi phone. The app takes a file path from a webpage without checking it, so a bad website could make the app run harmful code on your phone. You would need to visit a malicious page for this to happen.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Robert Miller

View all

7 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.