- browser engine integration for zero false positives
- coverage of event handler context
- bug fixes
This commit is contained in:
Somdev Sangwan
2018-11-21 19:20:10 +05:30
committed by GitHub
parent 1d7e943f35
commit 2a70e5bdf1
9 changed files with 141 additions and 41 deletions

View File

@@ -69,7 +69,11 @@ def htmlParser(response, encoding):
for attr in attrs: # iterate over the attribute
if xsschecker in attr: # is xsschecker in this attribute?
# alright, this is the one we need
attributes.append(attr.split('=')[0])
attributeName = attr.split('=')[0]
attributeValue = ''.join(attr.split('=')[1:])
if attributeValue.startswith('\'') or attributeValue.startswith('"'):
attributeValue = attributeValue[1:-1]
attributes.append({attributeName:attributeValue})
break
try:
# finds the tag "inside" which input is refelcted