Skip to content

Instantly share code, notes, and snippets.

@Jineeshak
Created June 29, 2024 17:42
Show Gist options
  • Save Jineeshak/45b472dc121c27ab72d3350ad0b08f19 to your computer and use it in GitHub Desktop.
Save Jineeshak/45b472dc121c27ab72d3350ad0b08f19 to your computer and use it in GitHub Desktop.
metadata:
language: v1-beta
name: "SSRF SUS"
description: "Identify parameters that may be vulnerable to Server-Side Request Forgery (SSRF)."
author: "@Jineesh AK"
tags: "SSRF"
given request then
if {latest.request.url} matches "\b(\?|&)(url|link|uri|redirect|path|target|file|image|img|source|src|data|goto|to|nav|feed|rss|forward|out|view|external|web|request|fetch|load|upload|callback|continue|next|new|domain|address|proxy|proxy_url|remote|website|api|endpoint|redirect_uri)=\b" then
report issue:
severity: info
confidence: tentative
detail: "Parameter detected that may be vulnerable to Server-Side Request Forgery (SSRF)."
remediation: "Validate and restrict the allowed values or use whitelisting to mitigate SSRF vulnerabilities."
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment