Sploitus

Exploit for Improper Handling of Exceptional Conditions in Apache Struts

githubexploit · 2018-05-13

Exploit Code

README13 lines
## https://sploitus.com/exploit?id=08FAAC2B-88AF-5B64-AC55-C44F64A1F942
# CVE-2017-5638
Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution - Shell Script

The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

### Usage
```
./cve-2017-5638.sh  
```

### Example:
![N|Solid](https://s7.postimg.cc/zaiqn6iuj/Screenshot_from_2018-05-08_18-43-10.png)