Add vulnerable Docker image
This commit is contained in:
parent
7cd6146ec9
commit
8fc0ee36cd
5
vuln_rfi/Dockerfile
Normal file
5
vuln_rfi/Dockerfile
Normal 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
2
vuln_rfi/build.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
sudo docker build -t pierre42100/gns3-appliance-vuln-rfi .
|
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
|
Loading…
Reference in New Issue
Block a user