Skip to content
Info disclosure Write-up Intermediate

Element Android (<1.6.12) Sensitive file disclosure via share activity

The share activity in Element Android could be tricked into sharing files from the app's private data directory to any room. An attacker could obtain sensitive files such as the encrypted chat database and FCM tokens.

shielder.com

Published on shielder.com

Element Android (<1.6.12) is affected by a sensitive file disclosure, allowing a third-party malicious application to force sharing files stored under the files directory in the application’s private sandboxed data directory to an arbitrary room. Sensitive files include the encrypted chat database, the FCM tokens, etc.

The author, on shielder.com

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

Likely the share activity did not properly restrict which files could be shared, allowing paths outside the intended shared content to be accessed.

Impact

An attacker could disclose sensitive files including the encrypted chat database and FCM tokens to an arbitrary room.

What the attacker needed

Element Android before 1.6.12; ability to trigger share activity

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.

Apps keep private files in a sandbox that other apps cannot read. Here, a feature that lets you share files could be abused to share those private files into a chat room. That means someone could get hold of sensitive data like the chat database or notification tokens.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.