Skip to content
Path traversal Advisory Advanced CVE-2024-49421

(Pwn2Own) Samsung Galaxy S24 Quick Share Directory Traversal Arbitrary File Write Vulnerability

The Quick Share app on the Samsung Galaxy S24 did not properly validate a user-supplied path before using it in file operations. A network-adjacent attacker who could already perform activities on the device could create arbitrary files as the current user.

Kenneth G. Paterson Follow

Originally disclosed on Zero Day Initiative

Medium 5.9 View original

This vulnerability allows network-adjacent attackers to create arbitrary files on affected installations of Samsung Galaxy S24. An attacker must first obtain the ability to perform activities on the target device.

Ken Gannon of NCC Group (@yogehi), 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 app joined or trusted an externally supplied path without normalising it or confirming it stayed within the intended directory before writing.

Impact

A network-adjacent attacker with existing ability to perform activities on the device could create arbitrary files as the current user; the text does not claim code execution or data theft.

What the attacker needed

Network-adjacent access; ability to perform activities on device

The fix

Samsung issued an update that corrects the 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.

Quick Share is Samsung's file-sharing feature, similar to AirDrop. The app took a file path from outside and used it without checking it stayed inside the intended folder, so a crafted path could point somewhere else and let files be written there. The attacker also needed some existing ability to act on the phone, so this was not a remote takeover from nothing.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by Kenneth G. Paterson

View all

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

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.