Skip to main content
Research
Englishالعربيةکوردی
IN-DEPTH RESEARCHCV-C40F18

A complete technical case study with methodology, evidence, impact, and lessons.

Subdomain takeoverBug bountyReconnaissanceResponsible disclosureWeb security

How I Hacked Thousands of Subdomains

A subdomain-takeover workflow everyone considered closed, one missing server-side validation, and the curiosity that turned a single strange response into thousands of historical findings.

Thousandsof exposed subdomainsidentified during the historical research
10+responsible reportssubmitted to affected programs
$5ktotal rewardsearned from the disclosed campaign
1missed validationthat changed an “impossible” workflow

Results at a glance

Thousandsof exposed subdomainsacross bug-bounty scopes and the historical Alexa top one million
10+reports submittedthrough responsible-disclosure programs
$5,000total rewardsfrom the reported findings

The tab I checked every day

Hello everyone. In March 2021, I continued hunting and invested my time in subdomain discovery and subdomain takeover. Subdomain takeover is often described as low-hanging fruit, but finding the one vulnerable hostname among a large attack surface is genuinely hard.

The can-i-take-over-xyz repository became one of the tabs I opened every day. It quickly showed whether a third-party service had a known takeover fingerprint, and I checked it whenever reconnaissance exposed a provider I had not seen before.

GitHub page for the can-i-take-over-xyz repository used to check known subdomain takeover fingerprints.
The repository that helped me check subdomain-takeover fingerprints. · Original screenshot by MoSec

I also kept learning from 0xPatrik’s research, a helpful resource for understanding subdomain takeover.

Sometimes, no matter how hard you try, you simply have to keep trying.

I learned something new every day. That made me happy; failing to find a vulnerable subdomain could still be discouraging, but I did not stop.

The response that did not look right

During reconnaissance on one target, Aquatone finished taking screenshots of the discovered subdomains. As usual, I reviewed every screenshot. One response looked strange, so I dug into its DNS records with the Google Admin Toolbox.

dns
TARGET: spfmx.domainkey.freshdesk.com.
The CNAME target that connected the hostname to Freshdesk.
A target subdomain returning an unusual Freshdesk-related response during reconnaissance.
A subdomain with a response that looked unusual enough to investigate. · Original screenshot by MoSec

I followed the signup link to test the claim workflow.

Freshdesk signup screen reached from the unclaimed subdomain workflow.
The signup step in the Freshdesk workflow. · Original screenshot by MoSec

After signup, verification appeared to make the takeover impossible. From the browser’s point of view, that looked like the end of the path.

Freshdesk verification screen that appeared to prevent the subdomain from being claimed.
At first, verification made the takeover appear impossible. · Original screenshot by MoSec
A reaction from The Office expressing disappointment when verification appeared to block the takeover.
My reaction when verification seemed to end the investigation. · Reaction GIF via Giphy

Curiosity became the methodology

I told myself: let us see how these requests move through Burp Suite.

One of the most important lessons for beginners is to stay curious: question everything, change things, read documentation, and keep experimenting until you understand how the system works. If you understand it, you can test it better.

When I focus on a single request, I create a hundred questions in my mind and answer each of them practically. How does the front end handle the response? What happens during response manipulation? How will the back end process a different request? What if the HTTP method changes from PUT to DELETE? What if a header changes, or the body uses a different content type? Each response reveals part of the implementation—and sometimes how to make the workflow do something it was never designed to do.

Remember being a child and breaking a toy because you wanted to see what was inside? That same instinct can be a useful research habit. Now, back to the story.

Recon and takeover process

  1. 01
    Enumerate and screenshot

    Discover subdomains, run Aquatone, and review every response rather than only obvious errors.

  2. 02
    Resolve the dependency

    Inspect DNS and CNAME records to identify the third-party service behind the hostname.

  3. 03
    Trace the workflow

    Proxy signup and verification requests through Burp Suite and map client-side versus server-side decisions.

  4. 04
    Challenge assumptions

    Change methods, headers, body formats, values, and responses to test what the server actually enforces.

  5. 05
    Confirm and disclose

    Create a minimal proof of concept, document the impact, and report only through authorized channels.

I played with the workflow for a few minutes. Then—guess what?

A celebratory boom reaction after the request manipulation worked.
A few minutes in Burp later: breakthrough. · Reaction GIF via Giphy
Successful account workflow after the verification request was manipulated through Burp Suite.
I did it: the workflow accepted the manipulated request. · Original screenshot by MoSec
Evidence that the target subdomain could be claimed after bypassing the missing server-side validation.
Evidence of the successful historical subdomain takeover. · Original screenshot by MoSec

I was like: 😂

An excited reaction to confirming the takeover bypass.
My reaction after confirming the result. · Reaction GIF via Giphy
Historical proof of concept: The original video demonstrates the reported workflow. Use only in systems where you have explicit authorization.
HackerOneZomato disclosed report: subdomain takeover on fddkim.zomato.comA public example from the responsibly disclosed Freshdesk research campaign.

From one hostname to thousands

The next day, I created a fingerprint and used Subjack to search for the same condition at scale. I scanned in-scope bug-bounty assets and the historical Alexa top one million list. The same zero-day pattern appeared across thousands of subdomains.

Historical examples included subdomains belonging to dhl.com, stackoverflow.com, raspberrypi.org, avast.com, imperva.com, joebiden.com, and many other well-known sites. Again, these names document the 2021 research—not their current security posture.

I submitted more than ten reports and earned approximately $5,000 in total rewards.

The lesson: do not outsource your conclusion

The ultimate tip in this write-up is to dig deeper than others. Imagine if I had opened the can-i-take-over-xyz repository, found Freshdesk, read the existing threads, and stopped there.

The can-i-take-over-xyz Freshdesk entry and discussion indicating that the service was not considered vulnerable.
The public reference said Freshdesk was not vulnerable—exactly where many researchers would have stopped. · Original screenshot by MoSec

The reference said the service was not vulnerable, so I would not have found the bypass. One program triager captured the significance perfectly:

“Congratulations on finding a bypass on what many people thought was not possible.”

A program triager congratulating the researcher for finding a bypass many people thought was not possible.
A triager’s response after the bypass was reported. · Original screenshot by MoSec

Still learning

I am still a NOOB and learn every day. I do my best to succeed in bug bounty and ethical hacking because it is my hobby; when this happened, I had started exactly one year earlier.

I wish success to everyone on this journey. If you have questions, reach out on Twitter. Thank you for reading my first write-up.

Apply the research

Need this level of testing across your attack surface?

Work directly with researchers who look beyond automated findings and test the assumptions attackers exploit.

Discuss a security assessment
Moein Abbas, Founder & Lead Penetration Tester
About the researcher

Moein Abbas

Founder of codéjà Vu. Security researcher with 15+ years in information technology and cybersecurity. Has identified and responsibly disclosed critical vulnerabilities across Fortune 50 companies and major technology organizations worldwide.

View profile and research

Originally published at the author’s original source .