Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Sun Java Web Start Plugin Command Line Argument Injection

Disclosed
Feb 14, 2012
Created
May 30, 2018

Description

This module exploits a flaw in the Web Start component of the Sun Java
Runtime Environment. The arguments passed to Java Web Start are not properly
validated, allowing injection of arbitrary arguments to the JVM.

By utilizing the lesser known -J option, an attacker can take advantage of
the -XXaltjvm option, as discussed previously by Ruben Santamarta. This method
allows an attacker to execute arbitrary code in the context of an unsuspecting
browser user.

In order for this module to work, it must be run as root on a server that
does not serve SMB. Additionally, the target host must have the WebClient
service (WebDAV Mini-Redirector) enabled.

Author

Platform

Windows

Architectures

x86

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.