Recon Renaissance: How a Single Subdomain Led Me to a Goldmine of Bugs
A forgotten beta subdomain pointed to an abandoned cloud bucket, allowing a subdomain takeover. After recreating the bucket, the attacker accessed an admin login portal with weak credentials and used GraphQL to list all users and rotate API keys.
infosecwriteups.com
Published on infosecwriteups.com
Free link 🎈
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the organisation left a DNS record pointing to a deleted cloud storage bucket and kept an old admin interface with weak credentials and no CSRF protection.
Impact
The attacker could take over the subdomain, access an admin panel, view all users' emails and roles, and rotate payment API keys, potentially leading to data exposure and service disruption.
What the attacker needed
DNS record pointing to deleted bucket; Weak admin credentials; No CSRF protection
The fix
The endpoint was patched and the beta subdomain was locked down.
How it was found
- Enumerate subdomains and find beta.api.target.com.
- Notice DNS points to an old content bucket and recreate that bucket to take over the subdomain.
- Request the admin login page and see it returns 200 OK.
- Log in with weak credentials (admin/admin) and capture session cookies.
- Use GraphQL introspection to find queries like listAllUsers and rotateApiKey.
- Execute queries to retrieve user emails and roles, and rotate payment API keys.
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 write-up has not been written yet. The Original tab links to the source.
A subdomain is a part of a website address, like beta.example.com. If that subdomain points to a cloud storage bucket that no longer exists, anyone can create a bucket with the same name and take control of the subdomain. Here, that let the attacker reach an old admin login page, guess the password, and then use a query system to see private data and change secret keys.
What is Subdomain takeover?
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.