Exploit database

Vulnerability

CVE-2014-0094

Vulnerability details

Score
5.0
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:N/C:N/I:P/A:N

Description

The ParametersInterceptor in Apache Struts before 2.3.16.2 allows remote attackers to "manipulate" the ClassLoader via the class parameter, which is passed to the getClass method.

CVE Program

Exploit source choices

3 sources
Apache Struts ClassLoader Manipulation Remote Code Execution
MSF-multi--http--struts_code_exec_classloaderMetasploitLinux,Windows / remote

This module exploits a remote command execution vulnerability in Apache Struts versions 1.x (<= 1.3.10) and 2.x (< 2.3.16.2). In Struts 1.x the problem is related with the ActionForm bean population mechanism while in case of Struts 2.x the vulnerability is due to the ParametersInterceptor. Both allow access to 'class' parameter that is directly mapped to getClass() method and allows ClassLoader manipulation. As a result, this can allow remote attackers to execute arbitrary Java code via crafted parameters.

2014-03-06struts_code_exec_classloader.rb