Prevent change of document.location, when injecting the document.location JavaScript command

I found a reflected XSS in an application during a test, where I define the string passed to:

<script language=’JavaScript’>
document.location=’/this-is-my-input’
</script>

Some input sanitisation occurs, for i… Continue reading Prevent change of document.location, when injecting the document.location JavaScript command