Description
OpenCATS prior to commit 3002a29 contains a PHP code injection vulnerability in the installer AJAX endpoint that allows unauthenticated attackers to execute arbitrary code by injecting PHP statements into the databaseConnectivity action parameter. Attackers can break out of the define() string context in config.php using a single quote and statement separator to inject malicious PHP code that persists and executes on every subsequent page load when the installation wizard remains incomplete.
Problem types
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
Any version
3002a29f4c3cada1aa2c4f3d4ae4e189906606b6 (git)
Credits
Valentin Lobstein (Chocapikk)
VulnCheck
References
chocapikk.com/posts/2026/opencats-installer-rce/
github.com/opencats/OpenCATS/pull/706
github.com/...ommit/3002a29f4c3cada1aa2c4f3d4ae4e189906606b6
github.com/...cats/OpenCATS/blob/46e4727/lib/CATSUtility.php
github.com/...nCATS/blob/46e4727/modules/install/ajax/ui.php
www.vulncheck.com/...e-injection-via-installer-ajax-endpoint