Skip to content
Path traversal Disclosed report Intermediate

[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.

danielllewellyn Follow

Originally disclosed on HackerOne

Bounty$3,500 High 8.1 View original
  • 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.

The original report as published on HackerOne, by danielllewellyn. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Be a member of the same Slack workspace as the victim.
  2. Upload a file larger than 1MB with a specially crafted name.
  3. Induce the victim to click the file on their Android device.
  4. 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.

More by danielllewellyn

View all

1 more disclosed report, best first.

More from Slack

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.