Skip to content
Access control Advisory Advanced

(0Day) (Pwn2Own) Xiaomi Mi6 Captive Portal Whitelist Bypass Remote Code Execution Vulnerability

The Xiaomi Mi6 captive portal whitelist can be bypassed because approved subdomains are not properly verified for content delivery. A network-adjacent attacker can exploit this, in conjunction with other vulnerabilities, to execute arbitrary code on the device.

Robert Miller Follow

Originally disclosed on Zero Day Initiative

Medium 5.5 View original

This vulnerability allows network adjacent attackers to execute arbitrary code on vulnerable installations of Xiaomi Mi6. 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 captive portal whitelist does not verify that subdomains of approved domains are legitimate, allowing an attacker to serve malicious content from a subdomain.

Impact

A network-adjacent attacker could execute arbitrary code on the device, but user interaction (connecting to a malicious access point) is required and the exploit must be chained with other vulnerabilities.

What the attacker needed

Attacker within network range; victim connects to malicious access point; chained with other vulnerabilities

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 captive portal is the login page you see when connecting to public Wi-Fi. The phone keeps a list of allowed websites for this portal, but it does not check subdomains properly. An attacker nearby can trick the phone into loading malicious content, and combined with other bugs, run their own code on the phone.

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.