MODULE

Invision Community 5.0.6 customCss RCE

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

Invision Community 5.0.6 customCss RCE

Disclosed
05/16/2025
Created
05/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.

Author(s)

  • Egidio Romano (EgiX)
  • Valentin Lobstein

Platform

Linux,PHP,Unix,Windows

Architectures

php, cmd

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;