module

Apache Struts 2 Developer Mode OGNL Execution

Disclosed
Jan 6, 2012
Created
May 30, 2018

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 [email protected]

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
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.