Vulnerability & Exploit Database

Back to search

Apache Struts includeParams Remote Code Execution

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



  • Eric Kobrin
  • Douglas Rodrigues
  • Richard Hicks < [at]>



  • Windows Universal
  • Linux Universal
  • Java Universal


  • java
  • linux
  • windows


  • x86
  • 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_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 and set options... msf exploit(struts_include_params) > exploit

Related Vulnerabilities