GHSL-2022-065: Insufficient Path Validation in Omni-Notes Android App - CVE-2023-33188
The Omni-Notes Android app did not validate the file path in an intent's attachment URI, so a malicious app on the same device could force it to copy internal files (such as the notes database and preferences) to external storage. Those files then became readable by any app with external storage permission.
Originally disclosed on GitHub Security Lab
The Omni-Notes Android app has an insufficient path validation vulnerability when displaying the details of a note received through an externally-provided intent. The paths of the note’s attachments are not properly validated, allowing malicious or compromised applications on the same device to force Omni-Notes to…
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 passed an externally supplied URI directly to a file-copy routine without validating that it pointed to an allowed location, allowing access to its private internal storage.
Impact
This could lead to sensitive information disclosure, including the notes database and the MD5 hash of the app password, to any app with external storage read permission.
What the attacker needed
Malicious app on same device; user has Omni-Notes installed
How it was found
- Send an intent with action SEND and a file URI pointing to Omni-Notes internal storage.
- Omni-Notes processes the intent and copies the file to its external storage directory.
- Read 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 data by sending 'intents' to each other. Omni-Notes accepted a file location from another app and copied that file into a shared area without checking where it came from. A malicious app could therefore ask Omni-Notes to copy its own private files, like the notes database, into a place other apps can read.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.