module

Apache Struts 2 Developer Mode OGNL Execution

Disclosed
2012-01-06
Created
2018-05-30

Description

This module exploits a remote command execution vulnerability in Apache
Struts 2. The problem exists on applications running in developer mode,
where the DebuggingInterceptor allows evaluation and execution of OGNL
expressions, which allows remote attackers to execute arbitrary Java
code. This module has been tested successfully on Struts 2.3.16, Tomcat
7 and Ubuntu 10.04.

Authors

Johannes Dahse
Andreas Nusser
Alvaro
juan vazquez juan.vazquez@metasploit.com

Platform

Java

Architectures

java

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/multi/http/struts_dev_mode
msf exploit(struts_dev_mode) > show targets
...targets...
msf exploit(struts_dev_mode) > set TARGET < target-id >
msf exploit(struts_dev_mode) > show options
...show and set options...
msf exploit(struts_dev_mode) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.