Skip to content

Conversation

@zuriby
Copy link
Contributor

@zuriby zuriby commented Mar 12, 2017

Given "on" by itself is not an issue, rather onxxxx is, the len >=5 should be wrapping the "on" test as well
The code as is right now, causes false positive on legit URLs such as "/on=1"

/* JavaScript on.*
onload,onmove,onclick,onabort,onerror,onkeyup,onfocus,onresize,
onselect,onsubmit,onunload,onchange,onmouseup,onkeydown,onkeypress,
onmouseout,ondragdrop,onmousedown,onmousemove,onmouseover
*/

Given "on" by itself is not an issue, rather onxxxx is, the len >=5 should be wrapping the "on" test as well
The code as is right now, causes false positive on legit URLs such as "/on=1"

/* JavaScript on.* 
onload,onmove,onclick,onabort,onerror,onkeyup,onfocus,onresize,
onselect,onsubmit,onunload,onchange,onmouseup,onkeydown,onkeypress,
onmouseout,ondragdrop,onmousedown,onmousemove,onmouseover
*/
@client9 client9 merged commit ca8e3e4 into client9:master May 21, 2017
blappm added a commit to blappm/libinjection that referenced this pull request Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants