diff --git a/Struts2/S2-046(CVE-2017-5638)/README.md b/Struts2/S2-046(CVE-2017-5638)/README.md new file mode 100644 index 0000000..b8d7b5f --- /dev/null +++ b/Struts2/S2-046(CVE-2017-5638)/README.md @@ -0,0 +1,12 @@ +# S2-046 (CVE-2017-5638) Remote Code Execution Vulnerability + +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. + +Affected version: Apache Struts2 2.3.5 - 2.3.31 and 2.5.x - 2.5.10 + +FOFA query rule: app="Struts2" + +# Demo + +![](S2-046.gif) + diff --git a/Struts2/S2-046(CVE-2017-5638)/S2-046.gif b/Struts2/S2-046(CVE-2017-5638)/S2-046.gif new file mode 100644 index 0000000..66ed28e Binary files /dev/null and b/Struts2/S2-046(CVE-2017-5638)/S2-046.gif differ