module

Apache Tomcat CGIServlet enableCmdLineArguments Vulnerability

Disclosed
2019-04-10
Created
2019-07-02

Description

This module exploits a vulnerability in Apache Tomcat's CGIServlet component. When the
enableCmdLineArguments setting is set to true, a remote user can abuse this to execute
system commands, and gain remote code execution.

Authors

Yakov Shafranovich
sinn3r sinn3r@metasploit.com

Platform

Windows

Architectures

x86, x64

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/windows/http/tomcat_cgi_cmdlineargs
msf exploit(tomcat_cgi_cmdlineargs) > show targets
...targets...
msf exploit(tomcat_cgi_cmdlineargs) > set TARGET < target-id >
msf exploit(tomcat_cgi_cmdlineargs) > show options
...show and set options...
msf exploit(tomcat_cgi_cmdlineargs) > 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.