CVE-2021-32649: October/System authenticated file write leads to remote code execution
8.8
Basic Information
Technical Details
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
october/system | composer | >= 1.1.0, < 1.1.6 | 1.1.6 |
october/system | composer | < 1.0.473 | 1.0.473 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: (1) The import handlers (index_onLoadImportForm and index_onImport) in Themes.php allowed template imports without safe mode validation, enabling attackers to inject malicious Twig code. (2) The Twig SecurityPolicy's blockedMethods list (in SecurityPolicy.php) initially excluded the 'write' method, allowing attackers to call it via Twig templates. While the SecurityPolicy's configuration (blockedMethods array) is critical, it is a class property rather than a function. The primary exploitable entry points are the import functions, which directly enabled template injection. The 'write' method (in Halcyon models) was dangerous when called via Twig, but its vulnerability depends on the SecurityPolicy's missing block, not the method itself.