Skip to content
Leaked secrets Disclosed report Beginner

Slack Token exposed over internet (Github)

A Slack token was committed in a public GitHub repository's Travis CI configuration file. An attacker could use the token to access the Slack account and read internal communications.

sanjogpanda Follow

Originally disclosed on HackerOne

Informational View original
  • Fixed in 8 days
  • Disclosed after 12 months

NOTE! Thanks for submitting a report! Please replace all the [square] sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to verify and then potentially issue a bounty, so be sure to take your time filling out the report!

Summary: Slack token is exposed in public github​ repositoty​

Description: This file on one of your github​ repos contains a Slack token for the R​ocketChat​ account.

As noted in the official documentation, if this is to be published, it should be encrypted, which isn't the case here.

Releases Affected:

RCMarkdownParser file on the latest github​ master branch

Steps To Reproduce (from initial installation to vulnerability):

(Add details for how we can reproduce the issue)

  1. Go to https://github.com/RocketChat/RCMarkdownParser/blob/1b8a052bcd38bcf459ecb6bb644daa7d70769434/.travis.yml
  2. Notice the slack token present which can be used to access the account and communications.

Supporting Material/References:

Screenshot attached.

Suggested mitigation

Remove the slack token from the repo and also from the history

Impact

The token can be used to control the account and read internal communications.

Attachments

RocketChat_slack_token.png
RocketChat_slack_token.png From the original on HackerOne

The original report as published on HackerOne, by sanjogpanda. 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

Impact

The token could be used to control the Slack account and read internal communications.

What the attacker needed

Public GitHub repository; no authentication needed

The fix

The token should be removed from the repository and its history.

How it was found

  1. Open the linked Travis CI configuration file in the public GitHub repository.
  2. Observe the Slack token present in the file.

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 secret token is like a password that lets a program talk to a service. Here, that token was left in a public code repository, so anyone could see it and use it to access the company's Slack workspace.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.