API DOCS takeover on Readme.io
A subdomain of a private bug bounty target pointed via CNAME to a Readme.io documentation host, and the Readme.io project behind it was unclaimed. An attacker could register a Readme.io account, create a project and claim the custom domain, taking over the documentation subdomain.
i've been invited in some private bugbounty program on bugcrowd platform and the scope is limited, i mean no wildcard subdomain allowed for submission report but if found something-something good, " Just reach out to [email protected] " - Policy
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 a dangling CNAME record left pointing at a Readme.io project that was never claimed or was released, letting anyone claim the custom domain.
What the attacker needed
Dangling CNAME to Readme.io; free Readme.io account
How it was found
- Enumerate subdomains of the target with a subdomain enumeration tool.
- Check the results and find hosts whose CNAME points to a third-party service.
- Confirm the dangling CNAME with a DNS lookup.
- Create an account on the third-party service and create a project.
- Add the victim subdomain as a custom domain in the project settings and save.
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 takeover happens when a site points a name at an outside service, but nobody has claimed that name on the service. Anyone who signs up there can claim it and serve their own content under the victim's domain. Here the outside service was Readme.io, a documentation host.
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.