Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php
No fixed version listed yet.Check the vendor advisory. References ↓
invisioncommunity · Invision Power Board
Invision Community 5.0.0 before 5.0.7 (Invision Power Board) has a flaw in the themeeditor controller at applications/core/modules/front/system/themeeditor.php, where the customCss method, which unauthenticated users can invoke, passes the content parameter to Theme::makeProcessFunction() and so into the template engine without neutralisation. An unauthenticated remote attacker can exploit this by sending crafted template strings to themeeditor.php to execute arbitrary PHP code on the server.
Official description · CVE.org
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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 21 days after disclosure. Public exploit code (Metasploit) was available the same day.
- First seen exploitedVulnCheck KEV evidence+21 days
Affected versions and fixes
as published in the CVE recordinvisioncommunity Invision Power Board
Affected: >= 5.0.0, < 5.0.7