Rapid7

module

JBoss Seam 2 File Upload and Execute

Disclosed
Aug 5, 2010
Created
May 30, 2018

Description

Versions of the JBoss Seam 2 framework sanitize inputs to some JBoss Expression Language expressions. As a
result, attackers can gain remote code execution through the
application server. This module leverages RCE to upload and execute
a given payload.

Versions of the JBoss application server (AS) admin-console are
known to be vulnerable to this exploit, without requiring authentication.
Tested against JBoss AS 5 and 6, running on Linux with JDKs 6 and 7.

This module provides a more efficient method of exploitation - it
does not loop to find desired Java classes and methods.

Author

Platform

Java

Architectures

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