AXFR → discover shadow-IT staging → exploitable web app
DNS server allows unrestricted AXFR. Pull the full zone, find admin- / staging- / dev- hostnames never linked, hit one with default creds / leftover debug routes.
§ Context
Assumed environment: target has at least one authoritative DNS server with permissive AXFR (still common on legacy bind setups / staging zones). The discovered hostnames serve real apps with weaker hygiene than production.
§ Steps
- 01Reach RCE / dumpExfiltrationT1041— Exfiltration Over C2 Channel
- 02Filter for staging / admin / internal subdomainsReconnaissanceW-RECON-SUBDOMAIN— Subdomain Enumeration
- 03HTTP probe interesting hostsReconnaissanceW-RECON-DIRBRUTE— Directory & File Bruteforce
- 04Enumerate NS records for targetReconnaissanceW-RECON-FINGERPRINT— Tech Stack Fingerprinting
- 05Default creds / debug endpointDiscoveryW-DEBUG-ENDPOINT— Debug / Admin Endpoint Exposed
- 06dig @ns axfr <domain>DiscoveryDNS-ZONE-TRANSFER— Unrestricted Zone Transfer (AXFR)
§ References
§ Frequently asked
- What is the "AXFR → discover shadow-IT staging → exploitable web app" attack path?
- DNS server allows unrestricted AXFR. Pull the full zone, find admin- / staging- / dev- hostnames never linked, hit one with default creds / leftover debug routes. It chains 6 steps drawn from real-world offensive-security techniques.
- What starting position does this attack require?
- The first step is Reach RCE / dump (T1041) — a exfiltration primitive. Assumed environment: target has at least one authoritative DNS server with permissive AXFR (still common on legacy bind setups / staging zones).
- What is the final impact of this kill-chain?
- The final step lands on dig @ns axfr <domain> (DNS-ZONE-TRANSFER), which falls under Discovery. From here, an operator typically pivots into post-exploitation or maintains persistence.
- How can defenders detect or prevent this attack?
- Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.
§ Related dossiers
- Shared techniques3
Origin IP bypass → direct attack on backend
Find the real origin IP behind the CDN via CT logs / DNS history / SSL fingerprinting. Connect directly to origin, bypassing WAF + caching + rate-limit; run noisy attacks (SQLi / RCE) that the edge would have blocked.
- Shared techniques2
Vesting beneficiary replace → silently drain stream
Bug in a custom vesting contract allows anyone to call setBeneficiary on existing schedules. Replace beneficiary with attacker address; legitimate token stream now flows to attacker until released funds are noticed.
- Shared techniques2
Apache Struts S2-045 (CVE-2017-5638) → Equifax-style breach
Crafted Content-Type header is parsed as OGNL — execute commands as the app user. The 2017 Equifax breach origin: unpatched Struts endpoint exposed to the internet.
- Shared techniques2
MOVEit Transfer (CVE-2023-34362) → mass data exfil (Cl0p)
Pre-auth SQLi in MOVEit's web UI forges an admin session. .NET deserialisation chain drops a webshell as SYSTEM. Cl0p's 2023 mass-exfil playbook: download every file under /var/files.
- Shared techniques2
Cross-chain bridge validator-set bypass → mint wrapped tokens
Bridge's signature-set check is off-by-one (Nomad-class) or accepts a zero address (Ronin-class). Mint wrapped tokens on the destination chain without locking on the source.
- Shared techniques2
Reentrancy → drain vault contract
Vulnerable withdraw() sends ETH before updating balance. Attacker contract re-enters via fallback() until the vault is empty — the canonical DAO-2016 pattern.