header-logo
Suggest Exploit
vendor:
Apache Struts
by:
7.5
CVSS
HIGH
Cross-Site Scripting
79
CWE
Product Name: Apache Struts
Affected Version From: 2.0.0
Affected Version To: 2.2.1.1
Patch Exists: YES
Related CWE:
CPE: a:apache:struts
Metasploit:
Other Scripts:
Platforms Tested:

Cross-Site Scripting Vulnerability in Apache Struts

Apache Struts is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data. Successful exploitation requires 'Dynamic Method Invocation' to be enabled by default. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.

Mitigation:

The vendor has released a patch to address this vulnerability. It is recommended to update to the latest version of Apache Struts.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/47784/info

Apache Struts is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.

Successful exploitation requires 'Dynamic Method Invocation' to be enabled by default.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.

Apache Struts versions 2.0.0 through 2.2.1.1 are vulnerable. 

http://www.example.com/struts2-blank/home.action!login:cantLogin<script>alert(document.cookie)</script>=some_value