module

Apache Struts ClassLoader Manipulation Remote Code Execution

Disclosed
03/06/2014
Created
05/30/2018

Description

This module exploits a remote command execution vulnerability in Apache Struts versions
1.x ( 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.

Authors

Mark ThomasPrzemyslaw CelejRedsadic Matthew Hall

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_classloader
    msf /(r) > show actions
        ...actions...
    msf /(r) > set ACTION < action-name >
    msf /(r) > show options
        ...show and set options...
    msf /(r) > run
  
Title
NEW

Explore Exposure Command

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