Skip to content
Path traversal Advisory Intermediate CVE-2022-39349

GHSL-2022-062: Arbitrary File Read in Tasks.org Android app - CVE-2022-39349

The Tasks.org Android app's ShareLinkActivity did not validate file paths in shared intents, allowing a malicious app to copy internal files to external storage. An attacker could then read sensitive data such as the tasks database, though CalDAV passwords were encrypted.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

The Tasks.org Android app uses the activity ShareLinkActivity.kt to handle “share” intents coming from other components in the same device and converting them to tasks. Those intents may contain arbitrary file paths as attachments, in which case the files pointed by those paths are copied in the app’s external storage…

ghsecuritylab, on GitHub Security Lab

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

The app failed to validate the file URI received in the intent before copying it, allowing arbitrary file reads.

Impact

This could lead to sensitive information disclosure, including the tasks database and CalDAV credentials, though the password is encrypted with a key in Android's KeyStore, reducing the impact.

What the attacker needed

Malicious app on same device; user has Tasks.org installed

The fix

The issue was fixed in versions 12.7.1 and 13.0.1.

How it was found

  1. Send an intent to ShareLinkActivity with action SEND and a file URI pointing to an internal file.
  2. The app copies the file to its external storage attachments directory.
  3. The attacker reads the copied file from external storage.

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.

Android apps can share files with each other using 'intents'. This app accepted a file path from another app without checking it, so a bad app could ask it to copy private files to a place anyone could read. That could expose private data like tasks and account details.

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 ghsecuritylab

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

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.