SSRF happens when the server fetches a user-supplied URL (webhooks, URL previews, PDF renderers, image importers). Attackers point it at internal targets: Cloud metadata: http://169.254.169.254/latest/meta-data/iam/... (steals credentials) Internal admin panels: http://localhost:8080/admin Other schemes: file:///etc/passwd, gopher:// Defences Allow-list destination hosts or domains whenever possible. Allow only https (and maybe http) schemes and standard ports. Resolve DNS and block private, loopback, link-local and reserved IPs — then connect to that resolved IP to avoid DNS-rebinding. Disable redirects or re-validate every redirect target. Network controls: egress firewall, IMDSv2 on AWS, separate fetcher service.