J. King
7 years ago
19 changed files with 290 additions and 12 deletions
@ -0,0 +1,4 @@ |
|||||
|
<br /> |
||||
|
<b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br /> |
||||
|
<br /> |
||||
|
<b>Fatal error</b>: Unknown: Failed opening required '%base%\server.php' (include_path='.;C:\php\pear') in <b>Unknown</b> on line <b>0</b><br /> |
@ -0,0 +1,7 @@ |
|||||
|
<?php return [ |
||||
|
'code' => 302, |
||||
|
'cache' => false, |
||||
|
'fields' => [ |
||||
|
'Location: http://localhost:'.$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI']."0", |
||||
|
] |
||||
|
]; |
@ -0,0 +1,4 @@ |
|||||
|
<?php return [ |
||||
|
'code' => (int) $_GET['code'], |
||||
|
'cache' => false, |
||||
|
]; |
@ -0,0 +1,6 @@ |
|||||
|
<?php |
||||
|
sleep(5); |
||||
|
return [ |
||||
|
'code' => 404, |
||||
|
'cache' => false, |
||||
|
]; |
@ -0,0 +1,18 @@ |
|||||
|
<?php |
||||
|
$item = ' |
||||
|
<item> |
||||
|
<description>'.str_repeat("0", 1024).'</description> |
||||
|
</item>'; |
||||
|
return [ |
||||
|
'mime' => "application/rss+xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> |
||||
|
<channel> |
||||
|
<title>Test feed</title> |
||||
|
<link>http://example.com/</link> |
||||
|
<description>Example newsfeed title</description> |
||||
|
$item |
||||
|
</channel> |
||||
|
</rss> |
||||
|
MESSAGE_BODY |
||||
|
]; |
@ -0,0 +1,6 @@ |
|||||
|
<?php return [ |
||||
|
'mime' => "application/rss+xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
||||
|
MESSAGE_BODY |
||||
|
]; |
@ -0,0 +1,6 @@ |
|||||
|
<?php return [ |
||||
|
'mime' => "application/xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<random-vocabulary/> |
||||
|
MESSAGE_BODY |
||||
|
]; |
@ -0,0 +1,35 @@ |
|||||
|
<?php return [ |
||||
|
'mime' => "application/rss+xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> |
||||
|
<channel> |
||||
|
<title>Test feed</title> |
||||
|
<link>http://example.com/</link> |
||||
|
<description>Example newsfeed title</description> |
||||
|
|
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> |
||||
|
<atom:id>urn:uuid:4c8dbc84-42eb-11e7-9f61-6f83db96854f</atom:id> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<link>http://example.com/2</link> |
||||
|
</item> |
||||
|
<item> |
||||
|
<title>Example title</title> |
||||
|
</item> |
||||
|
<item> |
||||
|
<description>Example content</description> |
||||
|
<enclosure url="http://example.com/text" type="text/plain"/> |
||||
|
</item> |
||||
|
</channel> |
||||
|
</rss> |
||||
|
MESSAGE_BODY |
||||
|
]; |
@ -0,0 +1,47 @@ |
|||||
|
<?php return [ |
||||
|
'mime' => "application/rss+xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<!DOCTYPE test [ |
||||
|
<!ENTITY xee0 "XEE"> |
||||
|
<!ENTITY xee1 "&xee0;&xee0;&xee0;&xee0;&xee0;&xee0;&xee0;&xee0;&xee0;&xee0;"> |
||||
|
<!ENTITY xee2 "&xee1;&xee1;&xee1;&xee1;&xee1;&xee1;&xee1;&xee1;&xee1;&xee1;"> |
||||
|
<!ENTITY xee3 "&xee2;&xee2;&xee2;&xee2;&xee2;&xee2;&xee2;&xee2;&xee2;&xee2;"> |
||||
|
<!ENTITY xee4 "&xee3;&xee3;&xee3;&xee3;&xee3;&xee3;&xee3;&xee3;&xee3;&xee3;"> |
||||
|
<!ENTITY xee5 "&xee4;&xee4;&xee4;&xee4;&xee4;&xee4;&xee4;&xee4;&xee4;&xee4;"> |
||||
|
<!ENTITY xee6 "&xee5;&xee5;&xee5;&xee5;&xee5;&xee5;&xee5;&xee5;&xee5;&xee5;"> |
||||
|
<!ENTITY xee7 "&xee6;&xee6;&xee6;&xee6;&xee6;&xee6;&xee6;&xee6;&xee6;&xee6;"> |
||||
|
<!ENTITY xee8 "&xee7;&xee7;&xee7;&xee7;&xee7;&xee7;&xee7;&xee7;&xee7;&xee7;"> |
||||
|
<!ENTITY xee9 "&xee8;&xee8;&xee8;&xee8;&xee8;&xee8;&xee8;&xee8;&xee8;&xee8;"> |
||||
|
]> |
||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> |
||||
|
<channel> |
||||
|
<title>Test feed</title> |
||||
|
<link>http://example.com/</link> |
||||
|
<description>Example newsfeed title</description> |
||||
|
|
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> |
||||
|
<atom:id>urn:uuid:4c8dbc84-42eb-11e7-9f61-6f83db96854f</atom:id> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<link>http://example.com/2</link> |
||||
|
</item> |
||||
|
<item> |
||||
|
<title>Example title</title> |
||||
|
</item> |
||||
|
<item> |
||||
|
<description>Example content</description> |
||||
|
<enclosure url="http://example.com/text" type="text/plain"/> |
||||
|
</item> |
||||
|
</channel> |
||||
|
</rss> |
||||
|
MESSAGE_BODY |
||||
|
]; |
@ -0,0 +1,38 @@ |
|||||
|
<?php return [ |
||||
|
'mime' => "application/rss+xml", |
||||
|
'content' => <<<MESSAGE_BODY |
||||
|
<!DOCTYPE test [ |
||||
|
<!ENTITY xxe SYSTEM "file:///etc/passwd"> |
||||
|
]> |
||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> |
||||
|
<channel> |
||||
|
<title>Test feed</title> |
||||
|
<link>http://example.com/</link> |
||||
|
<description>&xxe;</description> |
||||
|
|
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> |
||||
|
<atom:id>urn:uuid:4c8dbc84-42eb-11e7-9f61-6f83db96854f</atom:id> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> |
||||
|
<guid>http://example.com/1</guid> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> <!-- Correct ID --> |
||||
|
</item> |
||||
|
<item> |
||||
|
<link>http://example.com/2</link> |
||||
|
</item> |
||||
|
<item> |
||||
|
<title>Example title</title> |
||||
|
</item> |
||||
|
<item> |
||||
|
<description>Example content</description> |
||||
|
<enclosure url="http://example.com/text" type="text/plain"/> |
||||
|
</item> |
||||
|
</channel> |
||||
|
</rss> |
||||
|
MESSAGE_BODY |
||||
|
]; |
Loading…
Reference in new issue