मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी5.4k · #14937

hunt-subdomain

यह क्या करती है

यह स्किल subdomain takeover जोखिम खोजती है, जहाँ DNS रिकॉर्ड ऐसी सेवा की ओर इशारा करता है जो अब इस्तेमाल में नहीं है। यह किसी कंपनी के डोमेन नामों और होस्टिंग सेटअप के अधिकृत परीक्षण के लिए है।

कब इस्तेमाल करें

  • ✓जब कोई सबडोमेन किसी तीसरे-पक्ष सेवा की ओर इशारा करता है जो शायद हटा दी गई हो।
  • ✓जब किसी कंपनी के पुराने preview या staging सबडोमेन हों जो अब इस्तेमाल नहीं होते।
  • ✓जब OAuth या लॉगिन पता ऐसे सबडोमेन का उपयोग करता हो जिसका रिकॉर्ड लटका हो।

Skill का लिंक

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-subdomain/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-subdomain/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप हमारे अधिकृत परीक्षण में हमारे सबडोमेन जाँच सकते हैं कि कोई लटके DNS रिकॉर्ड हैं जिन पर दावा किया जा सके?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट सबडोमेन की सूची बनाता है, उनके DNS रिकॉर्ड पढ़ता है, और जाँचता है कि लक्ष्य सेवा अब भी मौजूद है या नहीं। वह केवल पक्के दावे योग्य सबडोमेन और उनका असर रिपोर्ट करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Crown Jewel Targets

Subdomain takeover is high-value because it allows an attacker to serve content from a trusted, company-owned domain — bypassing browser same-origin trust, phishing filters, and user skepticism simultaneously.

Highest payout contexts:

  • Subdomains of major SaaS brands (Shopify, Snapchat, Mozilla, Yelp) where the trusted domain has user session context
  • CDN-backed subdomains (Fastly, CloudFront) where CNAME points to unclaimed origins
  • Third-party service integrations: UserVoice, WordPress.com, GitHub Pages, GitLab Pages, Heroku, Zendesk
  • Preview/staging/dev subdomains (new., preview., course., delivery., addons-preview.) — abandoned after feature launches
  • Subdomains used for OAuth redirect URIs or SSO endpoints — these pay highest

Asset types that matter most:

  • CNAME records pointing to deprovisioned third-party services
  • NS delegations to abandoned zones
  • A records pointing to unallocated cloud IPs (less common)
  • GitLab/GitHub Pages with unclaimed project namespaces

Attack Surface Signals

DNS signals:

  • CNAME pointing to *.github.io, *.gitlab.io, *.fastly.net, *.herokudns.com, *.wordpress.com, *.uservoice.com, *.zendesk.com, *.s3.amazonaws.com, *.azurewebsites.net, *.netlify.app
  • NXDOMAIN or SERVFAIL on the CNAME target while the parent record still exists
  • NS records delegating to registrars where the zone is no longer registered

HTTP response signals:

  • "There isn't a GitHub Pages site here"
  • "NoSuchBucket" (S3)
  • "The specified bucket does not exist"
  • "No such app" (Heroku)
  • "Sorry, this shop is currently unavailable" (Shopify)
  • "This UserVoice subdomain is available"
  • "Do you want to register" (any domain parking page)
  • HTTP 404 with provider-specific error templates
  • Fastly: "Fastly error: unknown domain"
  • "404 Web Site not found" (Azure App Service)

Tech stack signals:

  • Response headers: X-Served-By: cache-* (Fastly), X-GitHub-Request-Id, Server: Netlify
  • CNAME chain resolving to provider infrastructure but returning provider 404
  • SSL cert issued to provider wildcard (*.fastly.net) rather than company domain

Step-by-Step Hunting Methodology

  1. Enumerate all subdomains for the target using passive + active sources:

    • subfinder -d target.com -all
    • amass enum -passive -d target.com
    • assetfinder --subs-only target.com
    • Certificate transparency: crt.sh/?q=%.target.com
  2. Resolve all subdomains and flag those with:

    • NXDOMAIN responses
    • CNAME pointing to a third-party provider
    cat subdomains.txt | dnsx -a -cname -o resolved.txt
    
  3. Cross-reference CNAMEs against known vulnerable provider fingerprints using nuclei or subjack:

    subjack -w subdomains.txt -t 100 -timeout 30 -ssl -c fingerprints.json
    nuclei -l subdomains.txt -t takeovers/
    
  4. Manual verification for each flagged subdomain:

    • dig CNAME subdomain.target.com — confirm CNAME exists
    • dig A <cname-target> — confirm NXDOMAIN or no resolution
    • curl -sk https://subdomain.target.com — check for provider error string
  5. Confirm claimability — attempt to register the resource:

    • GitHub Pages: check if <username>.github.io/<repo> or org page is unclaimed
    • GitLab Pages: check project namespace
    • S3: attempt aws s3api create-bucket --bucket <bucketname>
    • UserVoice/Zendesk/WordPress: visit registration URL
    • Fastly: check if origin hostname is unregistered
  6. Claim the resource (only enough to prove control — do NOT serve malicious content):

    • Create a minimal index page with your HackerOne username and a timestamp
    • Take screenshot showing your content served on subdomain.target.com
  7. Document the chain: CNAME record → provider target → unclaimed resource → your content

  8. Assess impact escalation:

    • Does the subdomain appear in OAuth redirect allowlists?
    • Does it share cookies with parent domain (domain=.target.com)?
    • Is it referenced in the app's CSP?
    • Can it receive authenticated API calls?
  9. Write report before releasing the claim (some programs want to verify first)


Payload & Detection Patterns

Bulk CNAME extraction and NXDOMAIN detection:

# Extract CNAMEs and check if target resolves
while read sub; do
  cname=$(dig +short CNAME "$sub" | head -1)
  if [ -n "$cname" ]; then
    result=$(dig +short A "$cname"
अक्सर पूछे जाने वाले सवाल

takeover इतना गंभीर क्यों है?

इससे कोई भरोसेमंद कंपनी के पते से सामग्री परोस सकता है, जो फ़िशिंग या लॉगिन चोरी में मदद कर सकता है।

कौन-सी सेवाएँ जाँची जाती हैं?

स्किल GitHub Pages, Heroku, Zendesk, Fastly, Azure और Netlify जैसी सेवाएँ कवर करती है।

क्या लॉगिन वाले सबडोमेन ज़्यादा जोखिम में हैं?

हाँ। स्किल कहती है कि OAuth या single sign-on में इस्तेमाल होने वाले सबडोमेन का असर सबसे ज़्यादा होता है।

जानकारी

लेखक का मूल विवरण

Hunting skill for subdomain takeover vulnerabilities. Includes modern provider fingerprints — Microsoft Azure DevOps `cloudapp.azure.com` regional-pool re-issue (1-click OAuth ATO via wildcard `reply_to`, Binary Security), Zendesk help-desk takeover → email interception → password reset chain (0xprial writeup), Vercel `cname.vercel-dns.com` deleted-project takeover, plus general Fastly CDN service re-attach and S3 dangling-bucket cookie-scope techniques. Use when hunting subdomain takeover — emphasis on ATO-chain primitives (OAuth `redirect_uri`, cookie-domain, email DNS).

repo: elementalsouls/Claude-BugHunter

लोकप्रियता

GitHub स्टार
5.4k
रैंकिंग में स्थान
#14937
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

apk-redteam-pipeline

5.4k

यह आपके एजेंट को Android ऐप में सुरक्षा कमज़ोरियाँ परखने देती है: APK फ़ाइल ढूँढने और उसे decompile करने से लेकर उजागर secrets जाँचने तक।

कोडिंगसिक्योरिटी

bugcrowd-reporting

5.4k

यह आपके एजेंट को Bugcrowd पर बेहतर कमज़ोरी रिपोर्ट लिखने देती है, सही श्रेणी चुनते हुए और दायरे से बाहर वाली आपत्तियों का जवाब देते हुए।

कोडिंगसिक्योरिटी

cloud-iam-deep

5.4k

यह आपके एजेंट को अधिकृत सुरक्षा परीक्षण में जाँचने देती है कि मिली क्लाउड credential AWS, Azure या Google Cloud पर क्या-क्या एक्सेस कर सकती है।

कोडिंगसिक्योरिटी

enterprise-vpn-attack

5.4k

यह आपके एजेंट को अधिकृत परीक्षण में Cisco, Fortinet, Citrix और अन्य VPN उपकरणों की ज्ञात कमज़ोरियाँ जाँचने देती है।

कोडिंगसिक्योरिटी

मिलती-जुलती skills