Invitation reminder emails contain insecure links
Invitation reminder emails from Slack contained links using plain HTTP instead of HTTPS. An attacker on the same network could intercept and redirect the victim to a fake Slack page.
- Paid in 11 months
- Disclosed after 15 months
If one gets invited to a slack channel and does not act upon the invitation a while later a reminder email is sent.
The links in these reminders are http links. Excerpt from the mail:
Don’t miss out — come join the conversation!
Join Now http://click.email.slack-core.com/?qs=[id removed]
This poses an unnecessary risk that the connections can be intercepted and redirected by an attacker.
This is particularly surprising and unnecessary as:
- The links directly redirect to an https URL.
- The initial invitation mail contains no such indirect link, it directly links to https.
Impact
Attackers that are in the same network as a person receiving an invitation reminder mail can do a man in the middle attack and redirect the victim to a forget fake slack webpage.
What the report shows
Slack sends a reminder email when someone has been invited to a channel and has not acted on the invitation for a while. The researcher, hanno, looked at the links in that reminder and found that they are plain http links rather than https. The report includes an excerpt of the mail:
Don’t miss out — come join the conversation!
Join Now
http://click.email.slack-core.com/?qs=[id removed]
The link points at a click-tracking host, click.email.slack-core.com, with a query string parameter qs whose value is redacted in the report. The researcher notes two things that make the finding stand out:
- The links directly redirect to an
httpsURL. - The initial invitation mail contains no such indirect link; it links directly to
https.
So the reminder mail sends the recipient through an unencrypted hop, while the initial invitation does not. The report was rated low severity with the weakness category "Cryptographic Issues - Generic", and a bounty of 350.00 USD was paid. It was disclosed on 2019-06-29. The report does not describe a fix.
Root cause
The tracking host then redirects the visitor to the final https destination.
Impact
The report keeps the impact conditional: an attacker who is in the same network as a person receiving an invitation reminder mail can perform a man-in-the-middle attack and redirect the victim to a fake Slack webpage. The report says the connections can be intercepted and redirected by an attacker. The report does not claim that credentials were captured or that the attack was demonstrated; it describes the risk the link creates.
How this kind of bug works
When a link in an email uses http, the browser sends the request in clear text. Anyone who can observe or influence traffic on the path, such as someone on the same wireless network, an on-path proxy, or an attacker who can spoof responses, can read the request and alter the response. A redirect response is especially attractive: the attacker can change the Location header so the victim lands on an attacker-controlled page that imitates the real service.
Over http, that identifier is exposed, and the redirect chain depends entirely on an unauthenticated response. Even when the final destination is https, the first hop determines where the browser goes next, so the security of the whole chain is only as strong as its weakest link.
How to test for it
This class of bug is found by inspecting the actual messages a service sends, not by probing endpoints blindly.
- Trigger every transactional email the target offers: invitations, reminders, password resets, email confirmations, receipts, notifications. Use a mailbox you control.
- For each message, extract every URL from the HTML body and the plain-text part. Look at the scheme of each one, including links inside buttons and images.
- Follow each link with a proxy or a command-line client and record the full redirect chain. A positive result is an
http://URL that either serves content directly or issues a redirect to the final destination. - Check whether the tracking or redirector host accepts an arbitrary destination, for example by changing a destination parameter to a domain you control. An open redirect on the tracker is a separate, often higher-impact finding.
- Confirm the practical risk: show that the
httpresponse can be modified, or at minimum that the identifier and destination are visible in clear text.
Common false positives: a link that is http but immediately upgraded by a redirect served over a connection the attacker cannot touch is still a finding, but its impact is weaker; a link to a static marketing page with no authentication is low value; and a URL that only appears in a plain-text footer as documentation rather than a clickable link is not the same issue. Also check whether the http host is reachable at all, since a dead host changes the story.
How it is fixed
Generate all email links with https, including tracking and redirector hosts, and keep the final destination on https as well. Restrict redirectors to an allow-list of destinations so the tracking parameter cannot be abused as an open redirect. Enable HSTS on the tracking domain as defence in depth, and audit every template, including reminders and less common notification types, so the fix covers the whole set rather than one message.
Hunting notes
This bug class hides in the parts of a product that are easy to forget: reminder and digest emails, re-engagement campaigns, notification templates, and any link that passes through a third-party email provider or click tracker. Recon signals include separate tracking domains in email headers, redirector paths with opaque query parameters, and a mix of http and https links across templates from the same sender. Compare the first email in a flow with its follow-ups; as this report shows, the two can differ.
What happened, in plain words
Slack is a messaging product where people talk in channels. You can invite someone to a channel by email. If the person does not respond to the invitation for a while, Slack sends a reminder email. The researcher, hanno, looked at the links inside that reminder and found that they use http instead of https.
To understand why that matters, think of http as a postcard and https as a sealed letter. With a postcard, anyone who handles it along the way can read it and even swap it for a different one. With a sealed letter, they can see that something was sent, but they cannot read or change the contents. When a browser opens an http link, the request and the reply travel in a form that someone on the same network can read and alter.
The report shows an excerpt of the reminder email:
Don’t miss out — come join the conversation!
Join Now
http://click.email.slack-core.com/?qs=[id removed]
Line by line:
Don’t miss out — come join the conversation!is the visible text of the email, the part the recipient reads.Join Nowis the text of the button or link the recipient is meant to click.http://click.email.slack-core.com/?qs=[id removed]is where that click actually goes. Thehttp://part is the scheme, the rule for how the browser talks to the server.click.email.slack-core.comis a separate host used to count clicks, not the main Slack site. The?qs=part is a query string, extra information attached to the address, and its value is an identifier that has been removed from the report.
So the reminder does not send you straight to Slack. It sends you to a click-tracking host first, over an unencrypted connection, and that host then forwards you on. The researcher points out two things that make this stand out:
- The links directly redirect to an
httpsURL. In other words, the final destination is already secure; only the first step is not. - The initial invitation mail contains no such indirect link; it links directly to
https.
The first email in the flow does the right thing, and the reminder does not. The reminder sends the recipient through an unencrypted hop, while the initial invitation does not.
The report was rated low severity, filed under the weakness category "Cryptographic Issues - Generic", and paid a bounty of 350.00 USD. It was disclosed on 2019-06-29. The report does not describe a fix.
In general, how this kind of bug works
When a link in an email uses http, the browser sends the request in clear text. Anyone who can watch or influence traffic on the path, such as someone on the same wireless network, can read the request and change the reply. A redirect reply is especially useful to an attacker: the server tells the browser "go to this other address", and the attacker can change that address so the victim lands on a page the attacker controls, made to look like the real service.
The whole redirect chain then depends on a reply that nobody has protected. Even when the final destination is https, the first hop decides where the browser goes next, so the chain is only as strong as its weakest link.
The impact in this report is stated conditionally: an attacker in the same network as a person receiving an invitation reminder mail can perform a man-in-the-middle attack and redirect the victim to a fake Slack webpage. A man-in-the-middle attack is when an attacker sits between you and the server and passes messages along, reading or changing them. The report does not claim that credentials were captured or that the attack was demonstrated; it describes the risk the link creates.
How to test for it
This class of bug is found by inspecting the actual messages a service sends, not by probing endpoints blindly.
- Trigger every automated email the target offers: invitations, reminders, password resets, email confirmations, receipts, notifications. Use a mailbox you control.
- For each message, extract every URL from the HTML body and the plain-text part. Look at the scheme of each one, including links inside buttons and images.
- Follow each link with a proxy or a command-line client and record the full redirect chain. A positive result is an
http://URL that either serves content directly or issues a redirect to the final destination. - Check whether the tracking or redirect host accepts an arbitrary destination, for example by changing a destination parameter to a domain you control. An open redirect on the tracker is a separate, often higher-impact finding.
- Confirm the practical risk: show that the
httpreply can be modified, or at minimum that the identifier and destination are visible in clear text.
Common false positives: a link that is http but immediately upgraded by a redirect served over a connection the attacker cannot touch is still a finding, but its impact is weaker; a link to a static marketing page with no login is low value; and a URL that only appears in a plain-text footer as documentation rather than a clickable link is not the same issue. Also check whether the http host is reachable at all, since a dead host changes the story.
How it is fixed
Generate all email links with https, including tracking and redirect hosts, and keep the final destination on https as well. Restrict redirectors to an approved list of destinations so the tracking parameter cannot be abused as an open redirect. Enable HSTS on the tracking domain as an extra layer, and audit every template, including reminders and less common notification types, so the fix covers the whole set rather than one message.
Hunting notes
This bug class hides in the parts of a product that are easy to forget: reminder and digest emails, re-engagement campaigns, notification templates, and any link that passes through a third-party email provider or click tracker. Signals to look for include separate tracking domains in email headers, redirect paths with opaque query parameters, and a mix of http and https links across templates from the same sender. Compare the first email in a flow with its follow-ups; as this report shows, the two can differ.
Glossary
- HTTP: the basic language browsers and servers use to exchange web pages; with plain
httpthe traffic is not encrypted. - HTTPS: the same language carried inside an encrypted connection, so others on the network cannot read or change it.
- Scheme: the first part of a URL, such as
http://orhttps://, that says how to connect. - URL: the address of something on the web.
- Query string: the part of a URL after a
?, carrying extra values such as an identifier. - Host: the server name in a URL, for example
click.email.slack-core.com. - Redirect: a reply from a server telling the browser to go to a different address.
- Redirect chain: the series of redirects a browser follows before reaching the final page.
- Click tracker: a service that records clicks by sending the user through a special link first.
- Man-in-the-middle attack: an attacker positioned between you and a server, able to read or alter the traffic.
- Clear text: data sent without encryption, readable by anyone who can see it.
- HSTS: a header that tells browsers to always use
httpsfor a domain after the first visit. - Open redirect: a redirect service that will forward users to any address, including one an attacker chooses.
- False positive: a finding that looks like a bug but is not, or has no real impact.
- Severity: a rating of how serious a bug is, here low.
- Bounty: a payment made to a researcher for reporting a valid bug.
- Disclosure: the date a report is made public.