module

Apache Struts Remote Command Execution

Disclosed
2010-07-13
Created
2018-05-30

Description

This module exploits a remote command execution vulnerability in
Apache Struts versions handle unicode characters in OGNL extensive expressions passed to the web server.

By sending a specially crafted request to the Struts application it is possible to
bypass the "#" restriction on ParameterInterceptors by using OGNL context variables.
Bypassing this restriction allows for the execution of arbitrary Java code.

Authors

bannedit bannedit@metasploit.com
Meder Kydyraliev

Platform

Linux,Windows

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_code_exec
msf exploit(struts_code_exec) > show targets
...targets...
msf exploit(struts_code_exec) > set TARGET < target-id >
msf exploit(struts_code_exec) > show options
...show and set options...
msf exploit(struts_code_exec) > 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.