Add vulnerable Docker image

This commit is contained in:
Pierre HUBERT 2024-09-23 13:48:10 +02:00
parent 7cd6146ec9
commit 8fc0ee36cd
6 changed files with 34 additions and 0 deletions

5
vuln_rfi/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM php:alpine3.19
COPY src /src
WORKDIR /src
EXPOSE 80
CMD ["php", "-S", "0.0.0.0:80"]

2
vuln_rfi/build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
sudo docker build -t pierre42100/gns3-appliance-vuln-rfi .

1
vuln_rfi/src/about.txt Normal file
View 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
View 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
View 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
View File

@ -0,0 +1 @@
Privacy policy: TODO