
This repository provides a PoC for CVE-2017-5638, a remote code execution vulnerability in Apache Struts 2, exploitable via a crafted Content-Type HTTP header.
This repository contains a Proof of Concept (PoC) script demonstrating the Remote Code Execution (RCE) vulnerability identified as CVE-2017-5638 in Apache Struts 2.
An error in the handling of the Content-Type header in file upload requests allows attackers to execute arbitrary OGNL expressions. This can lead to full system compromise.
exploit.py: PoC script to demonstrate the vulnerabilityREADME.md: Instructions on setting up a vulnerable environment and running the PoCdocs/: Additional documentation and analysis of the vulnerabilitypip isntall -r PoC/requirements.txt
python3 PoC/exploit.py --url <target_url> --check
python3 PoC/exploit.py --url <target_url> --cmd <command_to_execute>
This project is for educational purposes only. Unauthorized use of this code against any system without permission is illegal and unethical.