| 标题 | cmseasy 7.7.7 Command Injection |
|---|
| 描述 | CmsEasy version 7.7.7 contains a critical vulnerability that allows authenticated administrators to achieve Remote Code Execution (RCE) through a combination of arbitrary file write and local file inclusion vulnerabilities in the template management functionality.
The vulnerability exists in the template editing feature where:
1. The `savetemp_action()` function in `/lib/admin/template_admin.php` allows writing arbitrary content (including PHP code) to template files without proper sanitization
2. The `saveCache()` function writes user-controlled content to the `/data/template/` directory
3. When the `pageset` parameter is present in the URL, the `fetch()` function in `/lib/inc/view.php` loads templates from the `/data/template/` directory
4. The `_eval()` function uses PHP's `include` statement to execute the template file, resulting in arbitrary PHP code execution
An authenticated attacker with administrator privileges can exploit this vulnerability chain to execute arbitrary PHP code on the server, leading to complete system compromise.
|
|---|
| 来源 | ⚠️ https://note-hxlab.wetolink.com/share/msJH69Y06ZlS |
|---|
| 用户 | yu22x (UID 34832) |
|---|
| 提交 | 2025-12-16 08時57分 (4 月前) |
|---|
| 管理 | 2025-12-27 14時30分 (11 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 338525 [CmsEasy 直到 7.7.7 Backend Template Management Page template_admin.php savetemp_action content/tempdata 权限提升] |
|---|
| 积分 | 20 |
|---|