Url parsing diff b/w anchor.href and new URL

.

Created by: Sudistark

Created on: Monday, May 26, 2025 at 7:19:37 AM

Updated on: Wednesday, May 28, 2025 at 2:54:28 AM


Vector type: JS

Vector charset: UTF-8

Code used before fuzz:
const anchor = document.createElement('a');
Template used:
char = String.fromCodePoint($[i])
url = "javascript://google.com"+char

try {
    new URL(url)
}
catch(e){
    anchor.href=url
    if(anchor.protocol !== ':'){log($[i])}
}
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Fuzz results

No results found.