Skip to content
Account takeover Disclosed report Beginner

Unauthenticated Access to some old file thumbnails

Old file thumbnails uploaded before authentication checks remain publicly accessible without authentication. Anyone who knows the secret-containing URL could access sensitive images, including from private channels.

mkbb Follow

Originally disclosed on HackerOne

  • Disclosed after 4 days

Summary by the program

File thumbnails which were uploaded before the implementation of auth checks do not have those checks retroactively applied. However, their URLs contain a secret which prevents guessing or brute-forcing of their location.

Summary by the researcher

Well, since you hid all the details which is why I requested disclosure in the first place, here goes the actual report:

Hello,

After reading these posts - https://medium.com/slack-developer-blog/important-changes-to-files-in-the-web-api-eb38f2a9c1e7#.96m8zq8nz and https://api.slack.com/types/file#authentication, it is clear that any access to file thumbnails should require authentication or the Authorization header with proper scopes defined (if accessed via the API).

However, it was observed that some of these files are accessible without any authentication required. I believe these files were uploaded before the security checks were implemented but I am not 100% sure about it. On recently uploaded files, authentication is indeed required so I believe this only applies to certain old files. Nevertheless, this is still information leakage (sensitive in some cases) and I believe all file access requests should be requiring authentication - whether old or new.

We confirmed that a lot of our files (sensitive images) that we uploaded (before 2016 around the same time when the security checks were implemented) are still accessible publicly without any authentication. This is a serious concern for us because these files (images) are sensitive and we wouldn't want anyone to get hold of them. We obviously rely on Slack to protect us against anyone accessing these old images as well even though the security checks are implemented for new files uploaded now.

I am not going to send our own files as PoC but I just google searched for "files.slack.com/files-tmb/" and came across some files that were accessible without authentication. They are listed below:

https://files.slack.com/files-tmb/T024MFP4J-F0J4R5MBN-2d878cd37b/add-new-color-scheme-inconsistency_360.png

https://files.slack.com/files-tmb/T0F8RH7U7-F0J505EG1-33434fadf3/screenshot_from_2015-12-28_15_23_39_160.png

PS - some of these files that were publicly accessible were shared in private channels as well so it is not like only images shared in public channels were accessible.

The original report as published on HackerOne, by mkbb. 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, authentication checks were added to file thumbnail access after some files were already uploaded, and those older files were never retroactively protected.

Impact

Sensitive images from private channels could be accessed by anyone who knows or obtains the thumbnail URL, though the secret in the URL makes guessing difficult.

What the attacker needed

Knowledge of the thumbnail URL; no account needed

The fix

The service should apply authentication checks to all file thumbnails, including old ones, so that access always requires proper authorisation.

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.

When you upload a file to a service, the service should check that you are allowed to see it before showing it to you. Here, some old files were stored without that check, so anyone with the right web address could view them. The addresses contain a long random string, which makes them hard to guess, but if someone finds the address, the file is exposed.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.