Skip to content
Access control Advisory Advanced

(0Day) (Pwn2Own) Xiaomi Mi6 Browser downloadAndInstallApk Improper Authorization Remote Code Execution Vulnerability

The Xiaomi Mi6 Browser's downloadAndInstallApk method did not properly authorise callers, so crafted JavaScript could trigger installation of an application package without user interaction. An attacker on a malicious access point could use this to run code in the context of the browser process.

Robert Miller Follow

Originally disclosed on Zero Day Initiative

High 8.0 View original

This vulnerability allows network adjacent 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 connect to a malicious access point.

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 downloadAndInstallApk method lacked an authorisation check on the calling page, allowing any JavaScript to invoke app installation.

Impact

A network-adjacent attacker could install an application package and execute code in the browser's process, though the victim must connect to a malicious access point.

What the attacker needed

Victim connects to a malicious access point; victim uses Xiaomi Mi6 Browser

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 phone browser has a feature that lets a web page ask it to download and install an app. Normally the phone should ask you first. Here the browser did not check properly who was asking, so a malicious web page could make it install an app silently. The attacker also needs the victim to be on a network the attacker controls, such as a fake Wi-Fi hotspot.

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 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.

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.