Skip to content
RCE Advisory Advanced CVE-2023-21516

(Pwn2Own) Samsung Galaxy S22 McsWebViewActivity Permissive List of Allowed Inputs Remote Code Execution Vulnerability

The McsWebViewActivity class on Samsung Galaxy S22 smartphones accepts a permissive list of allowed inputs, which lets a remote attacker execute arbitrary code. The attacker must convince the target to visit a malicious page or open a malicious file.

Sam Thomas 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 Samsung Galaxy S22 smartphones. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

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 McsWebViewActivity class did not properly validate or restrict the inputs it accepted, allowing malicious content to be processed as code.

Impact

A remote attacker could execute arbitrary code in the context of the current user, but only if the target visits a malicious page or opens a malicious file.

What the attacker needed

Samsung Galaxy S22 smartphone; victim visits a malicious page; or victim opens a malicious file

The fix

Samsung has issued an update to correct this vulnerability.

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 inside a mobile app that displays web content. This Samsung component did not properly restrict what inputs it accepted, so a crafted web page or file could make it run attacker-controlled code on the phone. The user has to be tricked into opening that page or file.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.