Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover on podcasts.slack-core.com

A subdomain of Slack's call infrastructure domain was pointing to a third-party podcast hosting service, but no account was associated with it. The researcher registered the subdomain on that service and could serve arbitrary content from it.

michiel Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Triaged in 25 hours
  • Fixed in 30 hours
  • Paid in 30 hours
  • Disclosed after 2 days

I noticed slack-core.com is used for Slack's call infrastructure. I had never seen that domain before, so I decided to find out what else was running on it. It turned out podcasts.slack-core.com was pointing to a Podcast and RSS hosting service called Feed.Press. However, there was no Feed.Press account associated with podcasts.slack-core.com, which allowed me to register it and start serving my content from this domain.

Note that since it is not on Slack's root domain, the impact of this vulnerability seems pretty minimal.

Proof of Concept

Here we can see podcasts.slack-core.com is CNAME'd to redirect.feedpress.me:

PLAIN
michiel@msp ~ $ dig podcasts.slack-core.com                                                                                         [2.1.9]

; <<>> DiG 9.10.3-P4-Ubuntu <<>> podcasts.slack-core.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1307
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;podcasts.slack-core.com.	IN	A

;; ANSWER SECTION:
podcasts.slack-core.com. 299	IN	CNAME	redirect.feedpress.me.
redirect.feedpress.me.	3599	IN	A	5.135.16.40

;; Query time: 253 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Jan 02 14:02:07 EST 2017
;; MSG SIZE  rcvd: 103

By creating my own account on Feed.Press, I was able to register podcasts.slack-core.com as my "custom domain" under my Feed.Press account. After it propagated through Feed.Press' systems, I was able to fully control the contents served as http://podcasts.slack-core.com.

Since the domain was dormant, I decided to redirect / to https://hackerone.com as a proof of concept. We can see that happening using this curl command (note the Location header):

PLAIN
michiel@msp ~ $ curl -vv http://podcasts.slack-core.com
* Rebuilt URL to: http://podcasts.slack-core.com/
*   Trying 5.135.16.40...
* Connected to podcasts.slack-core.com (5.135.16.40) port 80 (#0)
> GET / HTTP/1.1
> Host: podcasts.slack-core.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Mon, 02 Jan 2017 19:06:18 GMT
< Content-Type: text/html
< Content-Length: 178
< Location: https://hackerone.com
< X-Backend-Server: 172.16.0.53
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host podcasts.slack-core.com left intact

Remediation

Since the domain is not used anymore, it is recommended to remove the CNAME of podcasts.slack-core.com to redirect.feedpress.me.

If you need me to release the domain in Feed.Press itself, let me know and I'll remove it from my account.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Slack uses slack-core.com for its call infrastructure. That domain sits outside Slack's root domain, and the researcher had not seen it before, so he enumerated what else was running under it. One of the names he found, podcasts.slack-core.com, was pointing at Feed.Press, a Podcast and RSS hosting service. Feed.Press lets a customer attach a custom domain to an account so that the service serves that customer's podcast and RSS content from the domain.

Setup

The researcher needed no Slack account or special role. The only precondition was an account on Feed.Press, which he created. The tools used in the report are dig and curl from a Linux shell; the dig output shows DiG 9.10.3-P4-Ubuntu and the curl output shows curl/7.47.0. The DNS query was sent to the resolver at 8.8.8.8.

Finding it

While looking at what was hosted on slack-core.com, the researcher found that podcasts.slack-core.com was a CNAME to a Feed.Press host. The important observation was that no Feed.Press account was associated with that hostname. In other words, the DNS record still delegated the name to Feed.Press, but nobody at Feed.Press had claimed it, so the name was dormant and available for anyone to register as a custom domain.

Exploitation

Step 1: Confirm the DNS delegation

The researcher first confirmed where the name pointed:

PLAIN
michiel@msp ~ $ dig podcasts.slack-core.com                                                                                         [2.1.9]

; <<>> DiG 9.10.3-P4-Ubuntu <<>> podcasts.slack-core.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1307
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;podcasts.slack-core.com.	IN	A

;; ANSWER SECTION:
podcasts.slack-core.com. 299	IN	CNAME	redirect.feedpress.me.
redirect.feedpress.me.	3599	IN	A	[redacted]

;; Query time: 253 msec
;; SERVER: [redacted]#53([redacted])
;; WHEN: Mon Jan 02 14:02:07 EST 2017
;; MSG SIZE  rcvd: 103

The answer section shows the CNAME from podcasts.slack-core.com to redirect.feedpress.me, and an A record resolving that Feed.Press host to an address. The answer section shows a 299 second TTL on the CNAME.

Step 2: Claim the hostname at Feed.Press

The researcher created his own account on Feed.Press and registered podcasts.slack-core.com as his "custom domain" under that account. Because Feed.Press had no existing claim on the name, the registration succeeded. After it propagated through Feed.Press' systems, he fully controlled the contents served as http://podcasts.slack-core.com.

Step 3: Demonstrate control with a redirect

Since the domain was dormant, the researcher redirected / to https://hackerone.com as a proof of concept. He verified it with curl:

PLAIN
michiel@msp ~ $ curl -vv http://podcasts.slack-core.com
* Rebuilt URL to: http://podcasts.slack-core.com/
*   Trying 5.135.16.40...
* Connected to podcasts.slack-core.com ([redacted]) port 80 (#0)
> GET / HTTP/1.1
> Host: podcasts.slack-core.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Mon, 02 Jan 2017 19:06:18 GMT
< Content-Type: text/html
< Content-Length: 178
< Location: https://hackerone.com
< X-Backend-Server: [redacted]
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host podcasts.slack-core.com left intact

The request is a plain GET / with Host: podcasts.slack-core.com. The response is a 301 Moved Permanently served by nginx, and the Location: https://hackerone.com header is the proof: the content behind Slack's hostname is now chosen by the researcher's Feed.Press account. The response also carries an X-Backend-Server header.

Root cause

The mistake is a dangling DNS record. podcasts.slack-core.com still had a CNAME to redirect.feedpress.me, but no Feed.Press account was associated with that hostname, so nobody at Feed.Press owned the name. Feed.Press let the researcher register the unclaimed hostname as his custom domain. The report does not describe any additional verification step at Feed.Press that should have caught this.

Impact

Whoever claims the name controls the contents served from podcasts.slack-core.com. In this case the researcher only redirected the root path to https://hackerone.com. The researcher explicitly notes that, because the hostname is not on Slack's root domain, the impact of this vulnerability seems pretty minimal. The report does not describe cookie scope, content injection into Slack pages, or any other concrete abuse beyond controlling what the hostname serves.

Fix

Since the domain is no longer used, the researcher recommends removing the CNAME from podcasts.slack-core.com to redirect.feedpress.me. He also offers to release the domain in Feed.Press itself if needed, by removing it from his account.

Variants to test

  1. Enumerate CNAMEs under a target's auxiliary domains and resolve each one. A positive result is a CNAME pointing at a SaaS provider where the target name is unclaimed, which you can confirm by registering it in a test account and seeing your content served.
  2. Check names that point at services with custom domain features, such as podcast and RSS hosts, status page providers, and form or landing page builders. A positive result is the provider accepting the hostname as a custom domain without requiring proof of ownership of the parent domain.
  3. Look for names whose CNAME target returns a provider-specific "not found" or default page. A positive result is the default page changing to your content after you claim the name.
  4. Re-check names after a target retires a product. A positive result is a record left behind after the associated account at the provider was closed.

Hunting notes

During recon, the signal is a CNAME from a target-controlled name to a third party host, combined with the absence of any live content or account at that third party. The researcher showed enough impact by claiming the name in his own account and demonstrating control with a curl response whose Location header pointed somewhere he chose, while being explicit that the hostname was not on the root domain and the impact therefore seemed minimal.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Slack owns a domain called slack-core.com, which it uses for the systems behind its calls. A security researcher had not come across that domain before, so he decided to look at what else was running on it. One of the names he found, podcasts.slack-core.com, was set up to point at Feed.Press, a service that hosts podcasts and RSS feeds for people. Feed.Press lets a customer attach their own domain name to their account, so that the service serves that customer's podcast and feed content from that name. Nobody at Feed.Press had claimed podcasts.slack-core.com, so the researcher was able to register it himself and start serving his own content from a Slack-owned name.

Because the name is not on Slack's main domain, the researcher judged the impact to be pretty minimal. This kind of mistake is called a subdomain takeover: a name that still points at a third-party service, but where nobody at that service owns the name any more, so anyone can walk in and claim it.

Background: the pieces involved

Before the steps, here are the ideas you need. None of them require any security knowledge, only a rough picture of how the web works.

Domain names and subdomains. A domain name is the address you type into a browser, like example.com. A subdomain is a name placed in front of it, like podcasts.example.com. The owner of example.com controls everything under it, including podcasts.example.com. Here Slack controls slack-core.com, and podcasts.slack-core.com is one of its subdomains.

DNS. DNS is the phone book of the internet. When you type a name into your browser, your computer asks a DNS server, "what address does this name belong to?", and gets an answer back. Without DNS you would have to remember numeric addresses for every site.

CNAME records. A CNAME is a DNS entry that says "this name is really just another name, go and look that one up instead". Think of it as a mail forwarding note: post sent to the old address is redirected to the new one. If podcasts.slack-core.com is a CNAME to redirect.feedpress.me, then anyone visiting the Slack name is really sent to Feed.Press's servers.

A records and IP addresses. An A record is the final answer in DNS: it maps a name to a numeric address, the way a phone book maps a name to a phone number. The CNAME chain ends at an A record, and that address is the machine that actually answers.

TTL. Every DNS answer carries a TTL, short for time to live, measured in seconds. It tells other computers how long they may keep the answer before asking again. A short TTL means changes spread quickly.

Feed.Press. Feed.Press is a hosting service for podcasts and RSS feeds. RSS is a simple format that lets software read a list of episodes or articles. Feed.Press has a feature called a custom domain: a customer can tell Feed.Press "serve my podcast from my own name instead of from a Feed.Press name". That feature is central to this story, because it lets any account claim a name that is not already taken.

dig and curl. These are two command-line tools. dig asks DNS questions and prints the answers, so it is the tool for checking where a name points. curl fetches a web page from a terminal and prints what came back, including the response headers, which are the small pieces of information a server sends alongside the page. The researcher ran both from a Linux shell, the text interface where you type commands.

HTTP status codes and headers. When a browser asks for a page, the server replies with a status code and some headers. 200 means "here is the page". 301 means "this page has moved permanently, look at the Location header for the new address". The Location header is simply the new address the server wants you to go to.

The vulnerability class. A subdomain takeover happens when a company's DNS record still points at an outside service, but the account at that service that used to own the name has gone away. The outside service then treats the name as free, and anyone who signs up can claim it. The company's name still leads visitors to that outside service, so whoever claims the name decides what visitors see. The everyday comparison is a shop that moves out but leaves its old address on the signpost: anyone who rents the empty building inherits the shop's customers.

Setup

The researcher needed no Slack account and no special role inside Slack. The only thing he needed was an account on Feed.Press, which he created himself. The tools in the report are dig and curl from a Linux shell. The dig output shows DiG 9.10.3-P4-Ubuntu, and the curl output shows curl/7.47.0. The DNS query was sent to the resolver at 8.8.8.8.

Finding it

While looking at what was hosted on slack-core.com, the researcher found that podcasts.slack-core.com was a CNAME to a Feed.Press host. The important part was that no Feed.Press account was associated with that hostname. In plain terms: the DNS record still handed the name over to Feed.Press, but nobody at Feed.Press had claimed it, so the name was dormant and available for anyone to register as a custom domain.

Exploitation

Step 1: Confirm the DNS delegation

The first step was to confirm where the name actually pointed. You cannot claim a name at a hosting service unless you know which service the name leads to, so the researcher asked DNS directly:

PLAIN
michiel@msp ~ $ dig podcasts.slack-core.com                                                                                         [2.1.9]

; <<>> DiG 9.10.3-P4-Ubuntu <<>> podcasts.slack-core.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1307
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;podcasts.slack-core.com.	IN	A

;; ANSWER SECTION:
podcasts.slack-core.com. 299	IN	CNAME	redirect.feedpress.me.
redirect.feedpress.me.	3599	IN	A	[redacted]

;; Query time: 253 msec
;; SERVER: [redacted]#53([redacted])
;; WHEN: Mon Jan 02 14:02:07 EST 2017
;; MSG SIZE  rcvd: 103

Line by line, in plain words:

  • The first line is the command the researcher typed: dig podcasts.slack-core.com.
  • The ; <<>> DiG 9.10.3-P4-Ubuntu <<>> line says which version of the dig tool produced the output.
  • status: NOERROR means the DNS server answered without any error. The name exists.
  • The QUESTION SECTION repeats what was asked: the A record for podcasts.slack-core.com, meaning "what address does this name have?".
  • The ANSWER SECTION is the interesting part. The first answer says podcasts.slack-core.com is a CNAME to redirect.feedpress.me. The second answer follows that name and gives its A record, the numeric address [redacted].
  • The 299 and 3599 are TTLs in seconds. The CNAME's TTL is 299 seconds.
  • The SERVER line shows the question went to [redacted], and WHEN shows the date and time of the query.

Why this step: it proves the name is delegated to Feed.Press. Without that, there is nothing to claim at Feed.Press, and the rest of the attack would not work.

Step 2: Claim the hostname at Feed.Press

The researcher created his own account on Feed.Press and registered podcasts.slack-core.com as his "custom domain" under that account. Because Feed.Press had no existing claim on the name, the registration succeeded. After it propagated through Feed.Press' systems, meaning after their internal systems had picked up the change, he fully controlled the contents served as http://podcasts.slack-core.com.

Why this step: this is the takeover itself. The DNS record was already pointing at Feed.Press; the only missing piece was an account at Feed.Press that owned the name. Once that account existed, Feed.Press started serving that account's content whenever someone visited the Slack name.

Step 3: Demonstrate control with a redirect

Since the domain was dormant, the researcher redirected the root path / to https://hackerone.com as a proof of concept. The root path is simply the front page of a site, the part after the domain name when there is nothing else. A redirect is a server telling the browser "the page you want is over there, go to this other address instead". He verified it with curl:

PLAIN
michiel@msp ~ $ curl -vv http://podcasts.slack-core.com
* Rebuilt URL to: http://podcasts.slack-core.com/
*   Trying 5.135.16.40...
* Connected to podcasts.slack-core.com ([redacted]) port 80 (#0)
> GET / HTTP/1.1
> Host: podcasts.slack-core.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Mon, 02 Jan 2017 19:06:18 GMT
< Content-Type: text/html
< Content-Length: 178
< Location: https://hackerone.com
< X-Backend-Server: [redacted]
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host podcasts.slack-core.com left intact

Line by line, in plain words:

  • curl -vv http://podcasts.slack-core.com fetches the page. The -vv option means "very verbose": show every detail of the conversation, not just the page.
  • The lines starting with * are curl talking to itself: it rebuilt the URL, tried the address [redacted], and connected on port 80, the standard port for unencrypted web traffic.
  • The lines starting with > are what curl sent to the server. GET / HTTP/1.1 means "give me the front page, using version 1.1 of the web protocol". Host: podcasts.slack-core.com tells the server which name was requested, which matters because one server can host many names. User-Agent: curl/7.47.0 identifies the program making the request. Accept: */* means "I will accept any kind of content".
  • The lines starting with < are what the server sent back. HTTP/1.1 301 Moved Permanently is the status: the page has moved for good. Server: nginx says the web server software is nginx. Date is when the reply was made. Content-Type: text/html says the body is a web page. Content-Length: 178 says the body is 178 bytes long.
  • Location: https://hackerone.com is the proof. This header is the new address the server wants the browser to go to, and it is an address the researcher chose, not Slack.
  • X-Backend-Server: [redacted] is an extra header in the response.
  • The block between <html> and </html> is the small page the server sends along with the redirect, which browsers normally do not show because they follow the redirect immediately.
  • The final * line just says the connection was closed cleanly.

Why this step: a redirect is a safe way to show control. The researcher did not need to host anything harmful; he only needed to show that the content behind a Slack-owned name was now chosen by his Feed.Press account. The Location header is the evidence, because it is a value he picked.

Root cause

The mistake is a dangling DNS record. podcasts.slack-core.com still had a CNAME to redirect.feedpress.me, but no Feed.Press account was associated with that hostname, so nobody at Feed.Press owned the name. Feed.Press let the researcher register the unclaimed hostname as his custom domain. The report does not describe any additional verification step at Feed.Press that should have caught this.

Impact

Whoever claims the name controls the contents served from podcasts.slack-core.com. In this case the researcher only redirected the root path to https://hackerone.com. He explicitly notes that, because the hostname is not on Slack's root domain, the impact of this vulnerability seems pretty minimal. The report does not describe cookie scope, content injection into Slack pages, or any other concrete abuse beyond controlling what the hostname serves.

Fix

Since the domain is no longer used, the researcher recommends removing the CNAME from podcasts.slack-core.com to redirect.feedpress.me. He also offers to release the domain in Feed.Press itself if needed, by removing it from his account.

Variants to test

  1. Enumerate CNAMEs under a target's auxiliary domains and resolve each one. A positive result is a CNAME pointing at a service provider where the target name is unclaimed, which you can confirm by registering it in a test account and seeing your content served.
  2. Check names that point at services with custom domain features, such as podcast and RSS hosts, status page providers, and form or landing page builders. A positive result is the provider accepting the hostname as a custom domain without requiring proof of ownership of the parent domain.
  3. Look for names whose CNAME target returns a provider-specific "not found" or default page. A positive result is the default page changing to your content after you claim the name.
  4. Re-check names after a target retires a product. A positive result is a record left behind after the associated account at the provider was closed.

Hunting notes

During recon, the signal is a CNAME from a target-controlled name to a third party host, combined with the absence of any live content or account at that third party. The researcher showed enough impact by claiming the name in his own account and demonstrating control with a curl response whose Location header pointed somewhere he chose, while being explicit that the hostname was not on the root domain and the impact therefore seemed minimal.

Glossary

  • A record: a DNS entry that maps a name to a numeric address, the final answer in a DNS lookup.
  • CNAME: a DNS entry that says one name is really another name, so lookups follow the chain to the real target.
  • Custom domain: a feature of a hosting service that lets a customer serve their content from their own domain name instead of the provider's name.
  • Dangling DNS record: a DNS record that still points at an outside service, but where nobody at that service owns the name any more.
  • dig: a command-line tool that asks DNS questions and prints the answers.
  • DNS: the internet's phone book, translating names into addresses.
  • Domain name: the address of a site, such as example.com.
  • curl: a command-line tool that fetches web pages and prints the response, including headers.
  • Feed.Press: a hosting service for podcasts and RSS feeds that supports custom domains.
  • HTTP status code: a number in a server's reply saying what happened, such as 200 for a normal page or 301 for a permanent redirect.
  • Header: a small piece of information a server sends alongside a page, such as where a redirect leads.
  • Location header: the header in a redirect response that gives the address the browser should go to.
  • nginx: a common web server program.
  • Proof of concept: a harmless demonstration that a vulnerability is real, without causing damage.
  • Redirect: a server telling the browser that the page has moved to another address.
  • Resolver: the DNS server your computer asks when it needs to look up a name.
  • Root path: the front page of a site, written as / after the domain name.
  • RSS: a simple format for lists of episodes or articles that software can read.
  • Subdomain: a name placed in front of a domain, such as podcasts.example.com under example.com.
  • Subdomain takeover: claiming a company's subdomain at a third-party service because the company's DNS record still points there but nobody owns the name at the service.
  • TTL: time to live, the number of seconds a DNS answer may be kept before asking again.
  • User-Agent: a header identifying the program that made a web request.

More by michiel

View all

5 more disclosed reports, 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.

Subdomain takeover

The lesson behind this report.

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.