1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 17:12:41 +00:00
Arsse/tests/docroot/Feed/Parsing/XXEAttack.php

39 lines
1.2 KiB
PHP
Raw Normal View History

2017-05-27 22:15:52 +00:00
<?php return [
'mime' => "application/rss+xml",
'content' => <<<MESSAGE_BODY
2018-10-26 18:58:04 +00:00
<!DOCTYPE test [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
2017-05-27 22:15:52 +00:00
]>
<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://localhost:8000/</link>
2017-05-27 22:15:52 +00:00
<description>&xxe;</description>
<item>
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier>
<guid>http://localhost:8000/1</guid>
2017-05-27 22:15:52 +00:00
<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://localhost:8000/1</guid> <!-- Correct ID -->
2017-05-27 22:15:52 +00:00
</item>
<item>
<dc:identifier>urn:uuid:43fb1908-42ec-11e7-b61b-2b118faca2f2</dc:identifier> <!-- Correct ID -->
</item>
<item>
<link>http://localhost:8000/2</link>
2017-05-27 22:15:52 +00:00
</item>
<item>
<title>Example title</title>
</item>
<item>
<description>Example content</description>
<enclosure url="http://localhost:8000/text" type="text/plain"/>
2017-05-27 22:15:52 +00:00
</item>
</channel>
</rss>
MESSAGE_BODY
2017-08-29 14:50:31 +00:00
];