Loading HuntDB...

Subdomain Takeover - https://competition.shopify.com/

Medium
S
Shopify
Submitted None

Team Summary

Official summary from Shopify

@llt4l discovered a dangling CNAME pointed to Heroku which allowed them to claim `competition.shopify.com`. We removed the DNS entry immediately and took the extra time to review and clean up some other records. As a result, we awarded an extra $250 on top of the typical $500 bounty.

Reported by llt4l

Vulnerability Details

Technical details and impact analysis

Privilege Escalation
Dear Shopify Security Team, The Shopify.com subdomain competition.shopify.com was vulnerable to a subdomain takeover as it was pointing to an unclaimed Heroku service through the CNAME competition.shopify.com.herokudns.com, while the custom domain 'competition.shopify.com' was unclaimed in Heroku. To prevent an attacker from claiming the domain and using it for malicious purposes, and also as a proof of concept, I have claimed the domain in Heroku and uploaded a proof of concept, which you can view here: https://competition.shopify.com/329a01fddb5a552265170b02c579c85f.html (I've also redirected visitors of the index page to https://shopify.com) To fix the issue, there are two possible solutions. If you would like to re-start using Heroku with this domain, I can remove the custom domain from my Heroku app. Otherwise you may choose to delete the entry from your DNS servers, which will also fix the problem. ## Impact I don't think I need to go into the security implications of a malicious attacker hijacking the domain, but here are a few possible attacks that could be performed if a malicious attacker were to hijack the domain: * The ability for an attacker to execute JavaScript to steal user cookies and/or using the site as an endpoint for browser exploitation. * Using the subdomain as a fool-proof phishing site (stealing Shopify customer/employee credentials). SSL has also been enabled, giving end users more trust of the site. * Defacement of the website, or deployment of a fake site, such as a fake Shopify competition that harvests customer credit card details. * Spreading of malware, or use of the domain as a C2 server. I look forward to hearing back from your team. Regards, t4

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Submitted

Weakness

Privilege Escalation