Rapid7

module

Invision Community 5.0.6 customCss RCE

Disclosed
May 16, 2025
Created
May 21, 2025

Description

Invision Community up to and including version 5.0.6 contains a remote code
execution vulnerability in the theme editor's customCss endpoint. By crafting
a specially formatted `content` parameter with a `{expression="..."}`
construct, arbitrary PHP can be evaluated. This module leverages that flaw
to execute payloads or system commands as the webserver user.

Authors

Egidio Romano (EgiX)
Valentin Lobstein

Platform

Linux,PHP,Unix,Windows

Architectures

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