hunt-host-header
यह क्या करती है
यह टूल वेबसाइटों पर सिक्योरिटी की कमियाँ ढूँढने में मदद करता है। यह जाँचता है कि क्या किसी साइट को धोखा देकर नकली पते को असली पता मनवाया जा सकता है, जिससे अकाउंट चोरी या दूसरी कमज़ोरियाँ पैदा हो सकती हैं।
कब इस्तेमाल करें
- ✓अनुमति लेकर किसी वेबसाइट की सिक्योरिटी टेस्ट करते समय।
- ✓'Host Header Injection' की खामियाँ कैसे काम करती हैं, यह समझने के लिए।
- ✓यह जाँचने के लिए कि साइट पासवर्ड रीसेट लिंक जैसी संवेदनशील जानकारी ठीक से सुरक्षित रखती है या नहीं।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-host-header/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जाँचो कि वेबसाइट X पासवर्ड रीसेट फ़ंक्शन पर 'Host Header Injection' हमलों के लिए कमज़ोर है या नहीं”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल वेबसाइट को बदले हुए 'Host' header वाली रिक्वेस्ट भेजता है, ताकि नकली पते की नकल हो सके। फिर देखता है कि क्या वेबसाइट इस जानकारी का गलत इस्तेमाल करके लिंक बनाती है या रिक्वेस्ट प्रोसेस करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
HUNT-HOST-HEADER — Host Header Injection
Grounding / Provenance
This skill is built from the public Host-header attack literature, not invented payloads. Cite the technique source in your report, never a fabricated ID:
- Password-reset poisoning class — the canonical write-up is Skelet's/Detectify-era
"Practical HTTP Host header attacks" (the Django
request.get_host()→ password-reset-link case). Many frameworks built the reset URL from the request Host with noALLOWED_HOSTS-style allowlist. Cite the framework + the reflected-Host behaviour you actually observed. - Web cache poisoning via unkeyed Host / X-Forwarded-Host — PortSwigger Research, James Kettle, "Practical Web Cache Poisoning" (2018) and "Web Cache Entanglement" (2020). These define unkeyed-input poisoning, which is the mechanism behind X-Forwarded-Host poisoning.
- Routing-based SSRF — PortSwigger Research, "Cracking the lens" / routing-based SSRF (Host header steers the front-end's upstream selection).
When you write the report, name the exact behaviour you reproduced (reflected header, cache HIT on a fresh key, OOB hit from your Collaborator). Do not copy a CVE or H1 ID you have not verified — a missing citation is always better than a wrong one.
Crown Jewel Targets
Host header injection that reaches password reset links = Critical (ATO for any user).
Highest-value chains:
- Password reset poisoning → ATO — server builds the reset link from the request Host;
attacker sets
Host: evil.com; the victim's reset email points the token at the attacker → token captured on click → full ATO. Pre-account-takeover variant: even the victim requesting their own reset leaks the token to evil.com. - Web cache poisoning via unkeyed Host — a CDN/reverse proxy caches a response that reflects
an attacker
X-Forwarded-Hostinto an absolute URL (script src, link, redirect) → poisoned entry served to every later visitor on that cache key → mass XSS/redirect/CSP bypass. - Routing-based SSRF — the front-end uses the Host header itself to pick the upstream;
Host: 169.254.169.254(or an internal hostname) makes it forward your request to that target → cloud metadata / internal admin panels. - Path-override SSRF / ACL bypass — IIS/ASP.NET/Spring honour
X-Original-URL/X-Rewrite-URLto override the routed path → reach/adminor internal endpoints the edge ACL thought it blocked. (Different layer from routing SSRF — see Phase 3.) - OAuth/OIDC poisoning — Host drives
redirect_urior the OIDCissuer/ discovery doc → auth-code or token theft → ATO.
Attack Surface Signals
Any password reset / forgot-password / email-verification / invite endpoint
Any app behind CDN/reverse proxy (Cloudflare, Varnish, Fastly, Akamai, Nginx, HAProxy)
OAuth/OIDC authorization + /.well-known/openid-configuration endpoints
Absolute URLs constructed from request Host (set-password links, share links, webhooks)
Email-sending endpoints (transactional mail, notifications)
Reverse proxies that may route by Host (k8s ingress, service mesh, internal forward proxies)
Dangerous header candidates (unkeyed / trusted inputs):
Host X-Forwarded-Host X-Host
X-Forwarded-Server X-HTTP-Host-Override Forwarded
X-Original-URL X-Rewrite-URL X-Override-URL (path-override class)
Step-by-Step Hunting Methodology
Always test against your own registered test account. Never request another user's reset.
Phase 1 — Password Reset Poisoning
# 1a. Override Host directly
…
अक्सर पूछे जाने वाले सवाल
'Host Header Injection' क्या है?
यह एक तरह का हमला है जिसमें हमलावर HTTP रिक्वेस्ट के 'Host' header में बदलाव करके वेब सर्वर को यह यकीन दिलाता है कि रिक्वेस्ट किसी दूसरे डोमेन से आई है।
यह खतरनाक क्यों है?
इससे अकाउंट पर कब्ज़ा हो सकता है (अगर पासवर्ड रीसेट लिंक ज़हरीला बना दिया जाए), XSS के ज़रिए खतरनाक कोड चल सकता है, या SSRF के ज़रिए इंटरनल सिस्टम तक पहुँच मिल सकती है।
क्या इस टूल के लिए अनुमति चाहिए?
हाँ, इस्तेमाल से पहले सिस्टम के मालिक की साफ़ और लिखित अनुमति लेना बहुत ज़रूरी है, क्योंकि इसका इस्तेमाल सिक्योरिटी टेस्टिंग के लिए ही होता है।
जानकारी
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4876
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।