Exploit database

Vulnerability

CVE-2017-5638

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

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.

CVE Program

Exploit source choices

17 sources
Apache Struts Jakarta Multipart Parser OGNL Injection
MSF-multi--http--struts2_content_type_ognlMetasploitLinux,Unix,Windows / remote

This module exploits a remote code execution vulnerability in Apache Struts version 2.3.5 - 2.3.31, and 2.5 - 2.5.10. Remote Code Execution can be performed via http Content-Type header. Native payloads will be converted to executables and dropped in the server's temp dir. If this fails, try a cmd/* payload, which won't have to write to the disk.

2017-03-07struts2_content_type_ognl.rb
mazen160/struts-pwn
GH-b23371dc58d1b7bf6200c38bdd417014GitHubUnofficial GitHub source

An exploit for Apache Struts CVE-2017-5638

2017-03-121 file · 445 stars
flyteas/struts2-045-exp
GH-03b8f193d3516cb37bc2f8ab6b153be4GitHubUnofficial GitHub source

Struts2 S2-045(CVE-2017-5638)Exp with GUI

2017-03-0716 files · 61 stars
jas502n/s2-045-exp-poc-tools
GH-8144d0483befce890181e01d55c86109GitHubUnofficial GitHub source

S2-045 漏洞 POC-TOOLS CVE-2017-5638

2017-03-093 files · 25 stars
xsscx/cve-2017-5638
GH-4ed0aaf2a2c57d71ce7a0191297b7fedGitHubUnofficial GitHub source

Example PoC Code for CVE-2017-5638 | Apache Struts Exploit

2017-03-102 files · 22 stars
jas502n/st2-046-poc
GH-037957777068aea10bae35c5630fb817GitHubUnofficial GitHub source

st2-046-poc CVE-2017-5638

2017-03-211 file · 21 stars
ret2jazzy/struts-apache-exploitpack
GH-2c3761ad2b4725df605dd4629f05c753GitHubUnofficial GitHub source

These are just some script which you can use to detect and exploit the Apache Struts Vulnerability (CVE-2017-5638)

2017-03-122 files · 16 stars
win3zz/cve-2017-5638
GH-8bdd6d0e1c9b0ad946027fef9c9e7451GitHubUnofficial GitHub source

Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution - Shell Script

2018-05-131 file · 16 stars
jrrdev/cve-2017-5638
GH-51ca5536e2995120b39ef68bef9e66f8GitHubUnofficial GitHub source

cve-2017-5638 Vulnerable site sample

2017-03-155 files · 14 stars
iletee/struts2-rce
GH-be6ddc719f6f7b2376249dbe197f083eGitHubUnofficial GitHub source

Exploitable target to CVE-2017-5638

2018-06-261 file · 11 stars
tahmed11/strutsy
GH-f97bf54f32f47f37aecc9e840edd9674GitHubUnofficial GitHub source

Strutsy - Mass exploitation of Apache Struts (CVE-2017-5638) vulnerability

2017-04-091 file · 10 stars
payatu/cve-2017-5638
GH-c2e9a2883e62f787bbe6f5ec400c236cGitHubUnofficial GitHub source

Apache Struts 2.0 RCE vulnerability - Allows an attacker to inject OS commands into a web application through the content-type header

2017-05-051 file · 8 stars
0x00-0x00/cve-2017-5638
GH-51b091b94eee3b54640795cf64fc2514GitHubUnofficial GitHub source

Struts02 s2-045 exploit program

2018-02-151 file · 6 stars