Vulnerability & Exploit Database

Back to search

Apache Struts includeParams Remote Code Execution

This module exploits a remote command execution vulnerability in Apache Struts versions < 2.3.14.2. A specifically crafted request parameter can be used to inject arbitrary OGNL code into the stack bypassing Struts and OGNL library protections. When targeting an action which requires interaction through GET, the payload should be split, taking into account the URI limits. In this case, if the rendered JSP has more than one point of injection, it could result in payload corruption. This should happen only when the payload is larger than the URI length.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/multi/http/struts_include_params

Authors

  • Eric Kobrin
  • Douglas Rodrigues
  • Richard Hicks <scriptmonkey.blog [at] gmail.com>

References

Targets

  • Windows Universal
  • Linux Universal
  • Java Universal

Platforms

  • java
  • linux
  • windows

Architectures

  • x86
  • java

Reliability

Development

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

Related Vulnerabilities