CVE-2026-71232: CWE-94 Code Injection in magicblack maccms10
MacCMS10's admin template editor (application/admin/controller/Template.php) blocks dangerous PHP functions in template content via a blacklist regex, but the blacklist omitted exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Combined with ThinkPHP's {if} template tag, which embeds the condition attribute directly into raw PHP (<?php if(condition): ?>), an authenticated administrator could inject a payload such as {if condition="exec('id > /tmp/pwned.txt')"}{/if} to achieve remote code execution. Fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 (2026-06-22), which added the missing functions to the filter.
AI Analysis
Technical Summary
The admin template editor in magicblack maccms10 (application/admin/controller/Template.php) attempts to block dangerous PHP functions in template content using a blacklist regex. However, the blacklist omitted functions such as exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Because the ThinkPHP {if} template tag embeds the condition attribute directly into raw PHP, an authenticated administrator can inject arbitrary PHP code. For example, a payload like {if condition="exec('id > /tmp/pwned.txt')"}{/if} can be used to execute system commands. The vulnerability was fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 on 2026-06-22 by adding the missing functions to the blacklist filter.
Potential Impact
An authenticated administrator can exploit this vulnerability to execute arbitrary PHP code on the server, leading to remote code execution with the privileges of the web application. This can result in full compromise of the affected system, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
A fix is available and was implemented in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 on 2026-06-22, which added the missing dangerous PHP functions to the blacklist filter in the template editor. Users should update to a version including this commit. No other mitigation guidance is provided.
CVE-2026-71232: CWE-94 Code Injection in magicblack maccms10
Description
MacCMS10's admin template editor (application/admin/controller/Template.php) blocks dangerous PHP functions in template content via a blacklist regex, but the blacklist omitted exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Combined with ThinkPHP's {if} template tag, which embeds the condition attribute directly into raw PHP (<?php if(condition): ?>), an authenticated administrator could inject a payload such as {if condition="exec('id > /tmp/pwned.txt')"}{/if} to achieve remote code execution. Fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 (2026-06-22), which added the missing functions to the filter.
CVSS v3.1
Score 7.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The admin template editor in magicblack maccms10 (application/admin/controller/Template.php) attempts to block dangerous PHP functions in template content using a blacklist regex. However, the blacklist omitted functions such as exec, passthru, popen, show_source, create_function, register_shutdown_function, register_tick_function, and error_log. Because the ThinkPHP {if} template tag embeds the condition attribute directly into raw PHP, an authenticated administrator can inject arbitrary PHP code. For example, a payload like {if condition="exec('id > /tmp/pwned.txt')"}{/if} can be used to execute system commands. The vulnerability was fixed in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 on 2026-06-22 by adding the missing functions to the blacklist filter.
Potential Impact
An authenticated administrator can exploit this vulnerability to execute arbitrary PHP code on the server, leading to remote code execution with the privileges of the web application. This can result in full compromise of the affected system, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
A fix is available and was implemented in commit 71ad3bb29570e110d8e973acff68040a3050ddf0 on 2026-06-22, which added the missing dangerous PHP functions to the blacklist filter in the template editor. Users should update to a version including this commit. No other mitigation guidance is provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T10:53:53.175Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a731a7fbf8831d539c95c5e
Added to database: 08/05/2026, 11:11:59 UTC
Last enriched: 08/05/2026, 11:27:30 UTC
Last updated: 08/06/2026, 02:06:53 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.