# Summary#
The Adobe Acrobat Reader Android app accepted http/https URLs via an exported intent and used the URL's last path segment as a filename without sanitising path traversal sequences, allowing an attacker to write arbitrary files into the app's private storage. By writing a malicious native library into a directory used by the Google Play Core dynamic code loading feature, the attacker could achieve remote code execution when the app later loaded that library.
While testing Adobe Acrobat reader app , the app has a feature which allows user to open pdfs directly from http/https url. This feature was vulnerable to path traversal vulnerability.
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
The app used the URL's last path segment as a filename without sanitising path traversal sequences before writing the file.
Impact
An attacker could achieve remote code execution on the victim's device when the app later loaded the malicious library, but the exploit required the victim to click a link and the app to use a specific feature.
What the attacker needed
Victim clicks a link; app uses dynamic code loading; specific app feature triggered
The fix
The app was fixed by sanitising the filename to replace reserved characters with underscores.
How it was found
- Craft a URL containing path traversal sequences in its last segment.
- Send an intent with that URL to the Adobe Reader activity.
- The app downloads the file and saves it to the traversed path.
- Place a malicious native library in the splitcompat native-libraries directory.
- Trigger the app feature that loads the library to execute the 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 write-up has not been written yet. The Original tab links to the source.
The app had a feature to open PDFs from web links. It saved the file using the name from the link, but didn't clean up special characters like '../' that let you climb out of the intended folder. This meant an attacker could make the app save a file anywhere in its private storage, including places where the app later loads code from, leading to code execution.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.