Can at this code the input.value
be a Dom-XSS sink?
let qs=new urlsearch(location.search);
let paramValue=qs.param;
let input=document.getElementByID('inputField');
input.value=paramValue;
I tried these payloads, but they don't work.
>< script>alert(1)< /script>
onClick=alert(1)
I wondered because when the payload is reflected from the server side, inside the value attribute, the input tag will be broken and the XSS should be triggered!