Executive brief
SeaCMS is a content management system with a template engine used to render search results. A flaw in the search function allows attackers to inject arbitrary code into template expressions, leading to remote code execution on the server with the privileges of the web server process.
Technical details
The vulnerability is a server-side template injection (SSTI) in the search.php component. When processing searchtype=5 requests, user-controlled parameters (such as 'area' and 'yuyan') are substituted directly into template {if:...} conditional expressions without sanitization. The template engine's parseIf() function in include/main.class.php then evaluates these expressions using PHP eval(), allowing attackers to inject arbitrary PHP code. No authentication is required and attack can be executed remotely via GET requests. Attackers can achieve remote code execution with the privileges of the web server process (typically www-data). Proof-of-concept exploits demonstrate command execution via PHP backtick syntax (e.g., ?searchtype=5&area=print%60id%60). The vulnerability has been publicly disclosed and no official patch status is stated.
Affected products
- SeaCMS SeaCMS up to 13.6
Timeline
- 2026-08-31: disclosed
- other: Exploit publicly available via GitHub security advisories