Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
The themeeditor controller (file /applications/core/modules/front/system/themeeditor.php) contains a protected customCss method that can be invoked by an unauthenticated user — this constitutes an authorization mechanism bypass (Auth Bypass). This method passes the value of the content parameter to the Theme::makeProcessFunction() function, where it is evaluated by the template engine. An attacker can supply crafted template strings containing malicious PHP code, which will be executed on the server side.
An unauthenticated attacker can execute arbitrary PHP code on the server, leading to complete takeover of the application and system, data theft, content modification, or further lateral movement in the infrastructure.
Invision Community must be immediately updated to version 5.0.7 or later, according to the vendor's information available at https://invisioncommunity.com/release-notes-v5/507-r41/
Invision Community versions 5.0.0 to 5.0.6 (before 5.0.7)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HInvisioncommunity
APPInvisioncommunity5.0.0 – 5.0.7 (bez)
Related vulnerabilities
SQL Injection w Invision Community — nieuwierzytelniony Blind SQLi w module sklepu
A Server-Side Request Forgery (SSRF) vulnerability in IPS Community Suite before 4.6.2 allows remote authentic...
Invision Power Board (IPB) through 3.x allows admin account takeover leading to code execution.
Invision Power Board before 3.3.1 fails to sanitize user-supplied input which could allow remote attackers to ...
Invision Power Services (IPS) Community Suite 4.1.19.2 and earlier has stored XSS in the Announcements, allowi...