Skip to content

Instantly share code, notes, and snippets.

@Jineeshak
Created July 1, 2024 05:31
Show Gist options
  • Save Jineeshak/fb266a5c26d5e24dad891eb18f893af7 to your computer and use it in GitHub Desktop.
Save Jineeshak/fb266a5c26d5e24dad891eb18f893af7 to your computer and use it in GitHub Desktop.
metadata:
language: v1-beta
name: "XSS SUS"
description: "Identify parameters that may be vulnerable to Cross-Site Scripting (XSS)."
author: "@Jineesh AK"
tags: "XSS"
given request then
if {latest.request.url} matches "\b(\?|&)(name|text|message|comment|description|content|search|query|title|email|username|user|input|output|data|keyword|q|s|p|value|id|item|key|info|details|address|location|number|code|lang|language|subject|body|param|parameter|tag|post|review|feedback|status|note|blog|article)=\b" then
report issue:
severity: info
confidence: tentative
detail: "Parameter detected that may be vulnerable to Cross-Site Scripting (XSS)."
remediation: "Validate and sanitize input for the detected parameter to prevent XSS vulnerabilities."
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment