Add vulnerable Docker image
This commit is contained in:
1
vuln_rfi/src/about.txt
Normal file
1
vuln_rfi/src/about.txt
Normal file
@ -0,0 +1 @@
|
||||
I am an old and accustomed developer who wrote too much source code in my life...
|
3
vuln_rfi/src/home.txt
Normal file
3
vuln_rfi/src/home.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Welcome to this strong and almost secure website!
|
||||
|
||||
Please use the menu below to access the different parts of the application...
|
22
vuln_rfi/src/index.php
Normal file
22
vuln_rfi/src/index.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* My home page
|
||||
*/
|
||||
|
||||
$page = __DIR__."home.txt";
|
||||
|
||||
if(isset($_GET["page"]))
|
||||
$page = $_GET["page"];
|
||||
|
||||
?>
|
||||
|
||||
<pre>
|
||||
<?php echo file_get_contents($page); ?>
|
||||
</pre>
|
||||
|
||||
Browse my website:
|
||||
<ul>
|
||||
<li><a href="index.php?page=home.txt">home</a></li>
|
||||
<li><a href="index.php?page=about.txt">about</a></li>
|
||||
<li><a href="index.php?page=privacy.txt">privacy</a></li>
|
||||
</ul>
|
1
vuln_rfi/src/privacy.txt
Normal file
1
vuln_rfi/src/privacy.txt
Normal file
@ -0,0 +1 @@
|
||||
Privacy policy: TODO
|
Reference in New Issue
Block a user