module

Primefaces Remote Code Execution Exploit

Disclosed
2016-02-15
Created
2024-12-07

Description

This module exploits a Java Expression Language remote code execution flaw in the Primefaces JSF framework.
Primefaces versions prior to 5.2.21, 5.3.8 or 6.0 are vulnerable to a padding oracle attack,
due to the use of weak crypto and default encryption password and salt.

Tested against Docker image with Tomcat 7.0 with the Primefaces 5.2 showcase application. See
documentation for working payloads.

Authors

Bjoern Schuette
h00die

Platform

BSD,Linux,OSX,Unix,Windows

Architectures

cmd

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