How I Gained Remote Code Execution (RCE) on Huawei Phones
An exported WebView activity in a Huawei mobile app accepted intent extras without validation, allowing a third-party app to supply a malicious download link. This could lead to remote code execution on the device.
medium.com
Published on medium.com
This vulnerability was inspired by the Pwn2Own Remote Code Execution (RCE) on the Xiaomi 13 Pro (CVE-2023–26324), discovered by Ken Ganon (Yogehi). When I was a Security Consultant at NCC Group, Ken Ganon was also my mentor in Android Security.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the exported WebView activity failed to validate or sanitise intent extras before using them to construct a download link, allowing untrusted input to control a security-sensitive action.
Impact
A malicious third-party app could achieve remote code execution on the Huawei device, though the text does not detail the exact exploitation chain.
What the attacker needed
Malicious app installed on device; Huawei device with vulnerable app
The fix
The vulnerability was fixed by Huawei on September 30, 2024, and users should update their apps and device.
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 write-up has not been written yet. The Original tab links to the source.
An exported activity is a part of an Android app that other apps on the phone can start. This app took data from another app and used it without checking it, so a malicious app could make the phone download and run harmful code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.