GNIP subdomain take over
A subdomain of the target was misconfigured and pointed to an unclaimed cloud storage bucket, allowing an attacker to take control of it. The attacker could redirect visitors from the legitimate subdomain to their own content.
Originally disclosed on HackerOne
- Triaged in 8 hours
- Fixed in 29 days
- Disclosed after 59 days
Summary by the researcher
Already received bounties from Twitter for bugs in acquisitions. But not this time because Twitter guys judge this subdomain take over to not be enough critical. Read the full report in case you need my point of view on this.
The report
Hello, Your subdomain at blog.gnipcentral.com is not well configured with allows subdomain take over as @fransoren explained in report #145224 .
PoC: Go to http://blog.gnipcentral.com/ , you will be redirected to my domain http://testcloudfrontbug.s3-us-west-2.amazonaws.com/asd/index.html
Please for more information visit the report made by @fransorosen, it's explained with all details possible.
Thanks, Hussein
What the report shows
The target is a subdomain of GNIP. The researcher notes having previously received bounties from Twitter for bugs in acquisitions. The researcher states that blog.gnipcentral.com was not configured correctly and that this allowed a subdomain takeover. The report credits @fransoren with explaining the technique in report #145224 and points readers there for the full explanation.
The proof of concept is a single step: visiting the blog subdomain redirects the visitor to a host under the researcher's control.
Go to http://blog.gnipcentral.com/ , you will be redirected to my domain http://testcloudfrontbug.s3-us-west-2.amazonaws.com/asd/index.html
The destination is an Amazon S3 bucket endpoint in the us-west-2 region. The report does not include the HTTP response headers, the status code, or the DNS records involved; it only states that the redirect happens.
The outcome is described in the researcher's own summary: the report was not rewarded. The researcher writes that Twitter judged this subdomain takeover not to be critical enough, in contrast to earlier bounties received for bugs in acquisitions. No severity rating, CVSS score or fix is given in the text. The report also does not say whether the subdomain was later cleaned up.
Root cause
The report attributes the issue to a misconfiguration of the subdomain, and The report attributes the issue to a misconfiguration of the subdomain. The redirect to an S3 bucket endpoint suggests a dangling cloud resource, but the report does not document the mechanism. The report itself does not spell out the DNS record type or the exact resource name, so treat that as the implied cause rather than a documented one.
Impact
The demonstrated impact is that a visitor to the legitimate blog subdomain is sent to a page the researcher controls. The researcher's own summary notes that the program did not consider this critical enough to reward. The report does not describe any attempt to phish, steal cookies, or host malicious content beyond the redirect page itself.
How this kind of bug works
A subdomain takeover happens when a DNS name in a victim's zone points at a third-party service, and the resource on that service that the name referred to has been released. The DNS record still resolves, but the service no longer has an owner for that name. Because many cloud services allocate names on a first-come, first-served basis, an attacker can register the same name and immediately control what the subdomain serves.
Common patterns include CNAME records pointing at cloud storage buckets, CDN distributions, and platform-as-a-service apps whose default names are predictable. The record is often left behind when a team decommissions a marketing site, a blog, or a staging environment but forgets to remove the DNS entry. The takeover is possible because the service identifies the tenant by name alone, not by a verified ownership token.
Defences are ownership verification on the service side (requiring a TXT record or similar before a name can be claimed), and disciplined DNS hygiene on the victim side: removing records when a service is retired, and monitoring for dangling records.
How to test for it
- Enumerate subdomains for the target using certificate transparency logs, passive DNS sources and brute force against a wordlist.
- Resolve each name and record the CNAME chain. Names that point at cloud storage, CDN or PaaS hostnames are the interesting ones.
- For each candidate, request the hostname and read the response body and status code. Fingerprints such as "NoSuchBucket", "There is no app configured at that hostname", or a provider's generic 404 page indicate that the backing resource is gone.
- Confirm by attempting to register the resource name yourself, in a way that is allowed by the program's rules, and checking whether the subdomain then serves your content.
- Document the redirect or served page with a screenshot and the exact request and response.
Common false positives: a provider error page that appears for a name that is still reserved by the owner; a wildcard DNS record that makes every random subdomain resolve; and a CNAME to a service that requires a verification token, which you cannot complete. Check that the name is genuinely unclaimed before reporting.
How it is fixed
Remove the dangling DNS record, or reclaim the resource on the third-party service so that the name is owned again. Where the service supports it, enable ownership verification so that a name cannot be claimed without proof of control. Add monitoring that alerts on subdomains resolving to unclaimed cloud resources, and include DNS cleanup in the decommissioning checklist for any service.
Hunting notes
Subdomain takeovers tend to hide in forgotten parts of large estates: marketing microsites, blog platforms, status pages, documentation portals, and anything created during an acquisition. Old CNAMEs to cloud buckets and CDN distributions are the classic case, and the report here is an example of that pattern in an acquired company's namespace.
Recon signals worth watching are CNAMEs to object storage and CDN hostnames, provider-specific error strings in responses, and subdomains that resolve but return a generic provider page.
What happened, in plain words
A security researcher reported that a web address belonging to GNIP could be taken over. The address was blog.gnipcentral.com, a subdomain of gnipcentral.com. The researcher showed that visiting it sent the visitor to a page the researcher controlled, hosted on Amazon's cloud storage service. The report was not rewarded: the researcher's summary says the subdomain takeover was judged not critical enough, unlike earlier bugs reported in acquisitions.
The report itself is short. It credits another researcher, @fransoren, with explaining the technique in report #145224 and points readers there for the full explanation. The proof of concept is a single step:
Go to http://blog.gnipcentral.com/ , you will be redirected to my domain http://testcloudfrontbug.s3-us-west-2.amazonaws.com/asd/index.html
In plain terms: you open the blog address in a browser, and instead of the blog you land on a page at testcloudfrontbug.s3-us-west-2.amazonaws.com, an Amazon S3 bucket endpoint in the us-west-2 region. The report does not include the HTTP response headers, the status code, or the DNS records involved; it only states that the redirect happens.
Why does that matter? Because a visitor who trusts the GNIP name is silently sent somewhere else. The report does not describe any attempt to phish, steal cookies, or host malicious content beyond the redirect page itself. The researcher's own summary notes that the program did not consider this critical enough to reward. No severity rating, CVSS score or fix is given in the text, and the report does not say whether the subdomain was later cleaned up.
In general, how this kind of bug works
A subdomain takeover happens when a DNS name in a victim's zone points at a third-party service, and the resource on that service that the name referred to has been released. The DNS record still resolves, but the service no longer has an owner for that name. Because many cloud services allocate names on a first-come, first-served basis, an attacker can register the same name and immediately control what the subdomain serves.
A useful comparison: think of a DNS record as a forwarding note on a door that says "my mail now goes to this address". If the new address is a rented mailbox that nobody pays for any more, anyone can rent that same box and start receiving the mail. The forwarding note still works; the box just changed hands.
Common patterns include CNAME records pointing at cloud storage buckets, CDN distributions, and platform-as-a-service apps whose default names are predictable. The record is often left behind when a team decommissions a marketing site, a blog, or a staging environment but forgets to remove the DNS entry. The takeover is possible because the service identifies the tenant by name alone, not by a verified ownership token.
The report attributes the issue to a misconfiguration of the subdomain. The redirect to an S3 bucket endpoint suggests a dangling cloud resource, but the report does not document the mechanism. The report itself does not spell out the DNS record type or the exact resource name, so treat that as the implied cause rather than a documented one.
Defences are ownership verification on the service side (requiring a TXT record or similar before a name can be claimed), and disciplined DNS hygiene on the victim side: removing records when a service is retired, and monitoring for dangling records.
How to test for it
- Enumerate subdomains for the target using certificate transparency logs, passive DNS sources and brute force against a wordlist.
- Resolve each name and record the CNAME chain. Names that point at cloud storage, CDN or PaaS hostnames are the interesting ones.
- For each candidate, request the hostname and read the response body and status code. Fingerprints such as "NoSuchBucket", "There is no app configured at that hostname", or a provider's generic 404 page indicate that the backing resource is gone.
- Confirm by attempting to register the resource name yourself, in a way that is allowed by the program's rules, and checking whether the subdomain then serves your content.
- Document the redirect or served page with a screenshot and the exact request and response.
Common false positives: a provider error page that appears for a name that is still reserved by the owner; a wildcard DNS record that makes every random subdomain resolve; and a CNAME to a service that requires a verification token, which you cannot complete. Check that the name is genuinely unclaimed before reporting.
How it is fixed
Remove the dangling DNS record, or reclaim the resource on the third-party service so that the name is owned again. Where the service supports it, enable ownership verification so that a name cannot be claimed without proof of control. Add monitoring that alerts on subdomains resolving to unclaimed cloud resources, and include DNS cleanup in the decommissioning checklist for any service.
Hunting notes
Subdomain takeovers tend to hide in forgotten parts of large estates: marketing microsites, blog platforms, status pages, documentation portals, and anything created during an acquisition. Old CNAMEs to cloud buckets and CDN distributions are the classic case, and the report here is an example of that pattern in an acquired company's namespace.
Recon signals worth watching are CNAMEs to object storage and CDN hostnames, provider-specific error strings in responses, and subdomains that resolve but return a generic provider page.
Glossary
- Subdomain: a name that sits under a main domain, such as
blog.gnipcentral.comundergnipcentral.com. - DNS: the system that translates names like
blog.gnipcentral.cominto the addresses computers use to reach them. - DNS record: an entry in DNS that says where a name should go, for example a CNAME that points one name at another.
- CNAME: a DNS record that says "this name is an alias for that other name".
- Subdomain takeover: taking control of a subdomain because the third-party resource it points to is no longer claimed by its owner.
- Redirect: a response that tells the browser to go to a different address instead.
- HTTP response headers: extra information a server sends with a response, such as the status code and content type.
- Status code: a number in an HTTP response that says what happened, for example 200 for success or 404 for not found.
- S3 bucket: a storage container in Amazon's cloud storage service, addressed by a name.
- Endpoint: the address at which a service can be reached.
- Cloud resource: something provisioned in a cloud provider, such as a storage bucket or a CDN distribution.
- CDN: a content delivery network, a service that serves content from many locations.
- PaaS: platform as a service, a cloud offering where an application runs without managing the underlying servers.
- Ownership verification: a check by a service that you really control a name before letting you claim it, often done with a TXT record.
- TXT record: a DNS record that can hold arbitrary text, often used for verification.
- Dangling DNS record: a DNS record that still points at a resource nobody owns any more.
- Certificate transparency logs: public logs of certificates issued for names, useful for discovering subdomains.
- Passive DNS: historical records of which names resolved to which addresses.
- Brute force: trying many candidate names from a list to see which ones exist.
- False positive: a finding that looks like a bug but is not actually exploitable.
- Wildcard DNS record: a record that makes every name under a domain resolve, even ones nobody created.
- Phishing: tricking people into trusting a page or message so they give away information or run something harmful.
- Cookie scope: the rules that decide which domain a cookie is sent to.
- CVSS: a scoring system for the severity of a vulnerability.
- PoC: proof of concept, a minimal demonstration that a bug is real.