Capturing SSRF Interactions
The first step is capturing an SSRF interaction you generate. Use tools such as:- Burp Collaborator
- canarytokens
- interactsh
- webhook.site
- requestrepo.com
Whitelisted Domain Bypasses
SSRF is often restricted to whitelisted domains. Common bypass techniques:Supported Protocols
file://
file://
Directly access local files:
dict://
dict://
Access DICT protocol servers:
gopher://
gopher://
Send raw TCP bytes to any service. Useful for attacking Redis, SMTP, internal APIs:Use Gopherus to generate Gopher payloads for:
- MySQL, PostgreSQL, FastCGI, Redis, Zabbix, Memcache
SFTP, TFTP, LDAP
SFTP, TFTP, LDAP
SSRF via Special Headers
SSRF via TLS AIA CA Issuers (Java mTLS)
Misconfigured Proxy SSRF
Cloud SSRF Exploitation
In cloud environments, SSRF can access metadata endpoints:Blind SSRF
When you cannot see the response:- Time-Based
- DNS-Based
- Status Code Exploitation
Check timing of server responses to determine if a resource exists:
- Requests to existing internal hosts may respond faster or slower.
- Use timing differences to map internal networks.
HTML-to-PDF Renderers as Blind SSRF Gadgets
Libraries like TCPDF and html2pdf automatically fetch URLs present in HTML while rendering a PDF:DNS Rebinding CORS/SOP Bypass
DNS rebinding can be used to bypass CORS/SOP restrictions when exfiltrating content from local IPs:- Victim visits attacker’s page
- Attacker changes DNS to point to internal IP (TTL=0)
- Subsequent requests from victim’s browser go to internal service
- Content is exfiltrated
SSRF to RCE Chains
Tools
- SSRFMap — Detect and exploit SSRF
- Gopherus — Generate Gopher payloads
- SSRF Proxy — Tunnel traffic through SSRF
- remote-method-guesser — Java RMI SSRF payloads