Skip to content
XSS Advisory Intermediate CVE-2024-4405

(Pwn2Own) Xiaomi Pro 13 mimarket manual-upgrade Cross-Site Scripting Remote Code Execution Vulnerability

The manual-upgrade.html file in Xiaomi's GetApps app does not sanitise the manualUpgradeInfo parameter, allowing script injection. An attacker could execute arbitrary code in the context of the current user if the victim visits a malicious page or opens a malicious file.

hoangnx99 Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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

@hoangnx99, @vudq16, @biennd279, @_q5ca from @vcslab, 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 manualUpgradeInfo parameter is inserted into the page without proper sanitisation, allowing script injection.

Impact

An attacker could execute arbitrary code in the context of the current user, but the victim must visit a malicious page or open a malicious file.

What the attacker needed

Victim visits a malicious page; or opens a malicious file

The fix

The vulnerability was addressed in GetApps version 32.0.0.1.

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 cross-site scripting (XSS) bug: a web page fails to clean up user input, so an attacker can sneak in their own script. When someone visits a malicious page, that script runs as if it came from the trusted site, letting the attacker do things like steal data or run code. Here the vulnerable page is part of Xiaomi's app store on a phone.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.