$750 Domain Hijacking Vulnerability
The application's referral links pointed to a domain that was not owned by the company and was available for purchase. An attacker could claim that domain and serve malicious content or impersonate the company to users who clicked the referral links.
Hello friends, this is gonna be a short, quick write up on how i got a simple P3 vulnerability (Medium) on bugcrowd.
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 company generated referral URLs using a domain it did not own or control, leaving that domain available for anyone to register.
Impact
An attacker could claim the domain and serve malicious content or impersonate the company, potentially tricking users into fake purchases; the company could only change newly generated referral URLs, not already posted ones.
What the attacker needed
Referral link feature uses unowned domain; attacker can purchase the domain; victim clicks a referral link
The fix
The company should register the domain used in referral links (or switch to a domain it controls) as soon as possible, and update the referral link generation to use an owned domain.
How it was found
- Find the referral link sharing feature in the application.
- Notice the referral URL uses a different domain that sounds similar to the main site.
- Visit the referral URL and see it resolves to a parked domain page.
- Check a domain registrar and confirm the domain is available for purchase.
- Search social media for the referral URL and find many users have posted it.
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 referral link is a special URL that a company gives to users so they can invite others. Here, that link used a web address (domain) that the company had never bought, so anyone could buy it. If a bad person buys it, they control what appears when people click the referral link, and they could pretend to be the company.
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.