Skip to content
Mobile Advisory Advanced

(0Day) (Pwn2Own) Samsung Galaxy S21 Exposed Dangerous Method Local Privilege Escalation Vulnerability

The Web Bridge WebView on Samsung Galaxy S21 phones exposes a JavaScript interface that allows an attacker to launch arbitrary apps. An attacker who can already run low-privileged code could use this to execute arbitrary code in the context of the current user.

Sam Thomas Follow

Originally disclosed on Zero Day Initiative

Medium 6.1 View original

This vulnerability allows local attackers to execute arbitrary code on affected installations of Samsung Galaxy S21 phones. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

Sam Thomas (@_s_n_t) of Pentest Ltd (@pentestltd), 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 JavaScript interface exposed by the WebView did not properly restrict which apps could be launched or validate the caller.

Impact

An attacker with low-privileged code execution could launch arbitrary apps and, in conjunction with other vulnerabilities, execute arbitrary code as the current user.

What the attacker needed

Ability to execute low-privileged code

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 WebView is a component that lets apps show web content inside them. Here, that web content could talk to the phone through a special bridge and start other apps without permission. If someone can already run a little bit of code on the phone, they could use this bridge to do more harmful things.

What is Mobile?

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

More by Sam Thomas

View all

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