[Android] Directory traversal leading to disclosure of auth tokens
Files uploaded to Slack with crafted names could cause the Android operating system to overwrite configuration files on the device. An attacker in the same workspace could induce a user to click a large file, potentially exposing Slack data to attacker-controlled websites.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 3 months
- Paid in 7 days
- Disclosed after 4 months
Summary by the program
Files uploaded to and opened in Slack with specially-crafted names could cause the Android operating system to overwrite configuration files on customer devices, potentially exposing Slack data to attacker-controlled websites. In order to take advantage of this vulnerability, attackers needed to be in a workspace with the user and to induce a user to click on a file uploaded to Slack exceeding 1MB (files smaller than 1MB are not downloaded to the device and therefore do not present a risk) from their Android device. Slack quickly mitigated this issue with a patch to the Slack backend web site and confirmed that no customers were impacted by this issue. Later, Slack introduced an additional patch in the Android client itself for defense-in-depth.
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 Android client did not sanitise file names before saving downloaded files, allowing path traversal that overwrote configuration files containing auth tokens.
Impact
Slack data could potentially be exposed to attacker-controlled websites, though Slack mitigated the issue on the backend and confirmed no customers were impacted.
What the attacker needed
Attacker in same workspace; victim on Android device; victim clicks uploaded file; file larger than 1MB
The fix
Slack patched the backend website and later added a client-side patch in the Android app for defence in depth.
How it was found
- Be a member of the same Slack workspace as the victim.
- Upload a file larger than 1MB with a specially crafted name.
- Induce the victim to click the file on their Android device.
- The file name causes a configuration file to be overwritten, potentially exposing Slack data.
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.
A malicious file name could overwrite a Slack configuration file, potentially exposing Slack data to attacker-controlled websites.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.