Skip to content
Mobile Advisory Advanced CVE-2019-13321

(Pwn2Own) Xiaomi Browser Captive Portal WebView Authorization Bypass Vulnerability

The Captive Portal in Xiaomi Browser mishandles HTTP responses, allowing a crafted HTML response to open a browser to a specified location without user interaction. An attacker could combine this with other vulnerabilities to execute code in the context of the current process.

Anonymous Follow

Originally disclosed on Zero Day Initiative

Medium 5.5 View original

This vulnerability allows network adjacent attackers to execute arbitrary code on affected installations of Xiaomi Mi6. User interaction is required to exploit this vulnerability in that the target must connect to a malicious access point.

Anonymous, 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 does not properly validate or restrict the URLs it opens from HTTP responses, allowing an attacker to specify an arbitrary location.

Impact

A network-adjacent attacker could cause the browser to open a malicious page without user interaction, and this could be chained with other vulnerabilities to execute code.

What the attacker needed

Victim connects to malicious access point; network-adjacent attacker

The fix

The issue was fixed in Xiaomi Browser version 10.4.0 (versionCode 20181211).

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. Here, the browser's captive portal feature could be tricked into opening a web page chosen by an attacker without the user tapping anything. That alone is not code execution, but it could be used as a step in a larger attack.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by Anonymous

View all

2,270 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.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.