subdomain-takeover

Installation
SKILL.md

子域名接管检测与利用方法论

相关 skill:SSRF 利用子域名白名单绕过 → ssrf-methodology;CORS 利用 *.target.comcors-misconfiguration(如有);XSS 利用接管子域 → xss-methodology(如有);Host Header 路由 → http-host-header-attacks


1. 核心概念

子域名接管发生在:

  1. sub.target.com 有 DNS 记录(CNAME/NS/A)指向外部服务
  2. 该外部资源已被删除/停用(删除的 S3 bucket、移除的 Heroku app 等)
  3. 攻击者可以在该供应商上注册/认领同名资源
  4. 攻击者控制 sub.target.com 下的内容

影响:cookie 窃取(父域 cookie)、OAuth token 拦截、可信域名钓鱼、CORS 绕过、CSP 绕过。


Related skills

More from wgpsec/aboutsecurity

Installs
6
GitHub Stars
1.3K
First Seen
Apr 22, 2026