Snooping into messages via email service
A vulnerability in a third-party email integration provider allowed messages in Slack email integrations to be leaked. An attacker could potentially read private Slack messages sent through that integration.
Originally disclosed on HackerOne
- Triaged in 44 hours
- Fixed in 12 days
- Paid in 12 days
- Disclosed after 18 days
Summary by the program
@uranium238 discovered a vulnerability with a 3rd party email integration provider which would allow messages in Slack email integrations to be leaked. We worked with the 3rd party to get this issue resolved, and performed a thorough investigation to confirm that this had never been exploited. Thanks @uranium238 for an interesting finding!
Summary by the researcher
Slack's overall response was extremely satisfying. From triage to resolve it was great to see the care and respect Slack has for reporters. It was great to work with them in fixing this vulnerability. 10/10 would research on Slack again.
Blog post : http://blog.pentestnepal.tech/post/150381068912/how-i-snooped-into-your-private-slack-messages
What the report shows
This is a short disclosure from the Slack program on HackerOne, published on 14 September 2016. The weakness is classified as improper authentication. The report itself is little more than two summaries, one from the program and one from the researcher, so the technical detail is thin.
The program's summary credits @uranium238 with discovering a vulnerability in a third party email integration provider. Through that flaw, messages handled by Slack's email integrations could be leaked. Slack says it worked with the third party to get the issue resolved and carried out a thorough investigation to confirm the issue had never been exploited.
The researcher's summary is a short note on how the disclosure went. They describe Slack's response as extremely satisfying, from triage to resolution, and praise the care and respect shown to reporters. They close with a link to their own blog post for the technical detail:
http://blog.pentestnepal.tech/post/150381068912/how-i-snooped-into-your-private-slack-messages
The report does not include the requests, parameters, endpoints or responses involved, and it gives no bounty amount, CVSS score or severity rating. The only outcome stated is that Slack worked with the third party to get the issue resolved and confirmed it had not been exploited.
Root cause
The report points to a flaw in a third party email integration provider rather than in Slack's own code. It does not describe the mechanism. Given the classification as improper authentication and the fact that messages could be leaked, the likely cause is that the provider did not properly authenticate or authorise whoever was asking for the content of an email integration, so a party who should not have had access could read messages routed through it. That is an inference from the summary, not something the report spells out.
Impact
Messages handled by Slack email integrations could have been leaked to someone who should not have seen them. The program states that after investigation it confirmed the issue had never been exploited, so in this case no leak is known to have occurred. The report gives no indication of how many workspaces or messages were exposed, or what access an attacker needed to reach the provider.
How this kind of bug works
Email integrations let a workspace receive mail as messages: a service accepts mail on the workspace's behalf, parses it and delivers it into a channel or a direct message. That means a third party holds message content and needs to decide who may read it. Bugs appear when that decision is missing or weak. Typical patterns are an identifier in a URL or API call that is not tied to the authenticated caller, a shared secret that is guessable or reused across tenants, a webhook or callback that trusts the request because it arrives from an expected address, or a token that never expires and is not bound to a single integration.
The general lesson is that any component in the delivery chain, including vendors, is part of the trust boundary. Authentication has to be enforced on every read of message content, and identifiers must be checked against the caller's identity rather than merely being hard to guess.
How to test for it
- Map the integration surface: the endpoints that create, list and read email integrations, the addresses mail is sent to, and any vendor-hosted pages or APIs the workspace links to.
- Create two accounts or workspaces you control and set up an email integration in each. Send distinctive test mail so you can recognise content later.
- Capture every request the integration makes and receives, including vendor callbacks, and note each identifier, token and cookie.
- Swap identifiers between the two accounts: integration IDs, message IDs, mailbox names, tokens. Replay requests with the other account's session and without any session.
- Try to reach the vendor's read paths directly, not only through Slack's UI, since the flaw may sit on the vendor side.
- A positive result is content from the second account appearing in the first account's context, or an unauthenticated request returning message bodies. Confirm with a second, independent pair of accounts before reporting.
Common false positives are cached pages that show stale data, content the two accounts legitimately share, and identifiers that are unguessable but still properly authorised, which is not a vulnerability on its own.
How it is fixed
Enforce authentication and authorisation on every read of integration content, binding each identifier to the owning workspace and user. Use per-integration secrets that are long, random and rotatable, expire tokens, and verify signatures on inbound webhooks. Scope vendor access so one tenant's credentials cannot reach another's data, and log access so that suspected leaks can be investigated.
Hunting notes
This class of bug hides in integrations and vendor handoffs: mail-to-channel services, ticketing and CRM connectors, chatops bots and anything that stores a copy of message content outside the main application. Recon signals include third party domains referenced in integration settings, callback URLs, and documentation that mentions shared mail addresses or API keys. To get a report accepted, show the cross-account read with two accounts you own, keep the proof minimal and redact other users' data, and describe the trust boundary that was crossed. Programs are often receptive when the fix requires coordinating with a vendor, so a clear, reproducible demonstration matters more than volume.
What happened, in plain words
This is a short public report from the Slack bug bounty program on HackerOne, published on 14 September 2016. The weakness is filed under "improper authentication", which is a category label for bugs where a system fails to properly check who is asking for something.
The report is unusual because it contains almost no technical detail. It is made up of two short summaries: one written by the Slack program, and one written by the researcher. Everything below comes from those two summaries.
The program's side
The program's summary credits @uranium238 with finding a vulnerability in a third party email integration provider. Through that flaw, messages handled by Slack's email integrations could be leaked. Slack says it worked with the third party to get the issue resolved, and then carried out a thorough investigation to confirm that the issue had never been exploited.
A few of those terms deserve unpacking for anyone new to this.
- Slack is a workplace chat product. People in an organisation talk in channels and direct messages.
- An email integration lets a workspace receive email as chat messages. A service accepts mail on the workspace's behalf, reads it, and delivers it into a channel or a direct message. Think of it like a mailroom that opens letters addressed to the company and drops them on the right desk.
- A third party provider is an outside company that runs part of that mailroom. Slack does not do all of the work itself; another vendor handles some of it.
- Leaked means content reached someone who was not supposed to see it.
- Exploited means someone actually abused the flaw in the real world, rather than just proving it could be done.
So the shape of the story is: a vendor that handles mail for Slack had a flaw, and through it messages could have been leaked. Slack worked with the vendor to resolve it and checked that nobody had used it.
The researcher's side
The researcher's summary is a short note on how the disclosure went. They describe Slack's response as extremely satisfying, from triage to resolution, and praise the care and respect shown to reporters. They close with a link to their own blog post for the technical detail:
http://blog.pentestnepal.tech/post/150381068912/how-i-snooped-into-your-private-slack-messages
That link is the only pointer to the mechanics. The report itself does not include the requests, parameters, endpoints or responses involved. It gives no bounty amount, no CVSS score and no severity rating. The only outcome stated is that Slack worked with the third party to get the issue resolved and confirmed it had not been exploited.
Why the classification matters
The report is filed as improper authentication. Authentication is the process of proving who you are, like showing a passport at a border. When a system has improper authentication, it accepts a claim of identity without checking it properly, or it lets someone read data without asking who they are at all. Combined with the fact that messages could be leaked, the likely cause is that the provider did not properly check who was asking for the content of an email integration, so a party who should not have had access could read messages routed through it. That is an inference from the summary, not something the report spells out.
What the impact would have been
Messages handled by Slack email integrations could have been leaked to someone who should not have seen them. The program states that after investigation it confirmed the issue had never been exploited, so in this case no leak is known to have occurred. The report gives no indication of how many workspaces or messages were exposed, or what access an attacker needed to reach the provider.
In general, how this kind of bug works
Email integrations sit in a chain: mail arrives, a service parses it, and the result is delivered into a chat. That means a third party holds message content and has to decide who may read it. Bugs appear when that decision is missing or weak. Typical patterns are:
- an identifier in a URL or API call that is not tied to the authenticated caller;
- a shared secret that is guessable or reused across customers;
- a webhook or callback that trusts a request because it arrives from an expected address;
- a token that never expires and is not bound to a single integration.
A token here is a short string that acts like a claim ticket: whoever holds it is treated as allowed. A webhook is an automatic message one system sends to another when something happens, like a doorbell that rings in another room. A callback is the address that message is sent to.
The general lesson is that any component in the delivery chain, including vendors, is part of the trust boundary. Authentication has to be enforced on every read of message content, and identifiers must be checked against the caller's identity rather than merely being hard to guess.
How to test for it
- Map the integration surface: the endpoints that create, list and read email integrations, the addresses mail is sent to, and any vendor-hosted pages or APIs the workspace links to.
- Create two accounts or workspaces you control and set up an email integration in each. Send distinctive test mail so you can recognise content later.
- Capture every request the integration makes and receives, including vendor callbacks, and note each identifier, token and cookie.
- Swap identifiers between the two accounts: integration IDs, message IDs, mailbox names, tokens. Replay requests with the other account's session and without any session.
- Try to reach the vendor's read paths directly, not only through Slack's UI, since the flaw may sit on the vendor side.
- A positive result is content from the second account appearing in the first account's context, or an unauthenticated request returning message bodies. Confirm with a second, independent pair of accounts before reporting.
A cookie is a small piece of data a website stores in your browser so it can recognise you on the next request, a bit like a cloakroom ticket. A session is the logged-in state that cookie represents. Replaying a request means sending the same request again, possibly with a different ticket attached.
Common false positives are cached pages that show stale data, content the two accounts legitimately share, and identifiers that are unguessable but still properly authorised, which is not a vulnerability on its own.
How it is fixed
Enforce authentication and authorisation on every read of integration content, binding each identifier to the owning workspace and user. Use per-integration secrets that are long, random and rotatable, expire tokens, and verify signatures on inbound webhooks. Scope vendor access so one customer's credentials cannot reach another's data, and log access so that suspected leaks can be investigated.
Hunting notes
This class of bug hides in integrations and vendor handoffs: mail-to-channel services, ticketing and CRM connectors, chatops bots and anything that stores a copy of message content outside the main application. Recon signals include third party domains referenced in integration settings, callback URLs, and documentation that mentions shared mail addresses or API keys. To get a report accepted, show the cross-account read with two accounts you own, keep the proof minimal and redact other users' data, and describe the trust boundary that was crossed. Programs are often receptive when the fix requires coordinating with a vendor, so a clear, reproducible demonstration matters more than volume.
Glossary
- Authentication: the process of proving who you are, like showing a passport.
- Authorisation: the process of deciding what a proven identity is allowed to do.
- Bug bounty program: a scheme where an organisation pays researchers for reporting security flaws.
- Callback: the address a system sends an automatic message to.
- Cookie: a small piece of data a website stores in your browser to recognise you later.
- CVSS: a standard scoring system for rating the severity of a vulnerability.
- Email integration: a feature that turns incoming email into chat messages in a workspace.
- Endpoint: a specific address on a server that accepts requests.
- Exploited: actually abused in the real world, not just demonstrated.
- Identifier: a value such as an ID or name that points to a particular object.
- Improper authentication: a flaw where a system fails to properly check who is making a request.
- Leak: content reaching someone who was not supposed to see it.
- Parameter: a named value sent with a request, such as an ID or a search term.
- Replay: sending the same request again, often with a different credential attached.
- Request: a message a browser or program sends to a server asking for something.
- Response: what the server sends back.
- Session: the logged-in state a site keeps for you across requests.
- Severity: how serious a vulnerability is judged to be.
- Third party provider: an outside company that runs part of a service on the main company's behalf.
- Token: a short string that acts as a claim ticket, granting access to whoever holds it.
- Triage: the first review of a report, where it is checked and prioritised.
- Trust boundary: the line between parties that trust each other and parties that do not.
- Vendor: an outside supplier of a service or component.
- Webhook: an automatic message one system sends to another when something happens.
- Workspace: a single organisation's space inside a chat product.