-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-renovate
- Loading branch information
Showing
8 changed files
with
191 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--TEST-- | ||
tags | ||
--INPUT-- | ||
quitesomerandomcharacters<TABLE BACKGROUND="javascript:javascript:alert(99111)"> | ||
--EXPECTED-- | ||
DATA_TEXT,25,quitesomerandomcharacters | ||
TAG_NAME_OPEN,5,TABLE | ||
ATTR_NAME,10,BACKGROUND | ||
ATTR_VALUE,34,javascript:javascript:alert(99111) | ||
TAG_NAME_CLOSE,1,> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--TEST-- | ||
cdata, degenerate. Longer text | ||
--INPUT-- | ||
<![CDATA foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo | ||
--EXPECTED-- | ||
TAG_COMMENT,253,[CDATA foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--TEST-- | ||
Extended bogus closing tags | ||
--INPUT-- | ||
</ looooooonger foo="><script>ReferenceError.prototype.__defineGetter__('name', function(){javascript:alert(1)}),x</script> | ||
--EXPECTED-- | ||
TAG_COMMENT,19, looooooonger foo=" | ||
TAG_NAME_OPEN,6,script | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,84,ReferenceError.prototype.__defineGetter__('name', function(){javascript:alert(1)}),x | ||
TAG_CLOSE,6,script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--TEST-- | ||
Extended Body Test | ||
--INPUT-- | ||
<BODY BACKGROUND="javascript:alert('XSS')"><h1>Welcome to my awesome Website!</h1><p>This is a paragraph of text on my website. It contains more characters to make the test longer.</p><div id="content"><p>Here's another paragraph of text. This one is inside a div with an id of "content".</p><ul><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul></div></BODY> | ||
--EXPECTED-- | ||
TAG_NAME_OPEN,4,BODY | ||
ATTR_NAME,10,BACKGROUND | ||
ATTR_VALUE,23,javascript:alert('XSS') | ||
TAG_NAME_CLOSE,1,> | ||
TAG_NAME_OPEN,2,h1 | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,30,Welcome to my awesome Website! | ||
TAG_CLOSE,2,h1 | ||
TAG_NAME_OPEN,1,p | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,95,This is a paragraph of text on my website. It contains more characters to make the test longer. | ||
TAG_CLOSE,1,p | ||
TAG_NAME_OPEN,3,div | ||
ATTR_NAME,2,id | ||
ATTR_VALUE,7,content | ||
TAG_NAME_CLOSE,1,> | ||
TAG_NAME_OPEN,1,p | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,83,Here's another paragraph of text. This one is inside a div with an id of "content". | ||
TAG_CLOSE,1,p | ||
TAG_NAME_OPEN,2,ul | ||
TAG_NAME_CLOSE,1,> | ||
TAG_NAME_OPEN,2,li | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,11,List item 1 | ||
TAG_CLOSE,2,li | ||
TAG_NAME_OPEN,2,li | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,11,List item 2 | ||
TAG_CLOSE,2,li | ||
TAG_NAME_OPEN,2,li | ||
TAG_NAME_CLOSE,1,> | ||
DATA_TEXT,11,List item 3 | ||
TAG_CLOSE,2,li | ||
TAG_CLOSE,2,ul | ||
TAG_CLOSE,3,div | ||
TAG_CLOSE,4,BODY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.