Production Key and Data Found on Subdomain No Longer Operated by Shopify / Dangling DNS
A disused subdomain had a dangling DNS record pointing to an IP address not controlled by Shopify, and the subdomain exposed source code containing a production secret key. An attacker could potentially use the key to compromise or operate the production environment.
Originally disclosed on HackerOne
- Fixed in 22 hours
- Disclosed after 23 months
Summary by the program
The disused subdomain for an app's data center had a dangling DNS record, and it was pointing to an IP address that doesn’t belong to Shopify. We removed the DNS record, but no Shopify services were impacted by the presence of this dangling DNS record, so the report was ineligible for a bounty.
Summary by the researcher
好耶!第一份披露报告
The report
Hello, Shopify team. I found the subdomain in http://honeybee-honeybee-ingress-data-presto-us-central1-2.shopify-data-presto-global.shopifykloud.com/languages
I was allowed to view the source code of the app's configuration (I'm not really sure), he used base64 to encode the source file, I decrypted it through a third party and found a lot of source code, even including, some content that should not be on the internet, for this I recorded a demo video where I will show how I decrypted and retrieved sensitive information within the site
I didn't look at all the source code, I found one place where I could prove the harm
''' SCAN
{"name":"main/settings.py
███
SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '███'
'''
Impact
Key compromise can cause takeover, or direct operation of the production environment
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a dangling DNS record for a disused subdomain that still resolved to an external IP, combined with exposed source code containing a production secret key.
Impact
The exposed production secret key could allow an attacker to take over or directly operate the production environment, though no Shopify services were impacted by the dangling DNS record itself.
What the attacker needed
Access to the disused subdomain; ability to decode base64
The fix
The DNS record was removed.
How it was found
- Found the subdomain at a specific URL path.
- Viewed the source code of the app's configuration, which was base64-encoded.
- Decrypted the base64 through a third party to retrieve source code.
- Identified a production secret key in the settings file.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A dangling DNS record is when a domain name still points to an old server that no longer belongs to the company. Here, that leftover record let someone reach a page that showed the app's source code, including a secret key used in production. That key could let an attacker take over or control the live system.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.