Submeter #765176: OpenCart 4.1.0.3 Code Injection (CWE-94)informação

TítuloOpenCart 4.1.0.3 Code Injection (CWE-94)
DescriçãoA Server-Side Template Injection (SSTI) vulnerability exists in OpenCart x.x.x.x through the latest commit in the Template Editor functionality (admin/controller/design/template.php). This is a regression of CVE-2024-36694, which identified the same SSTI vulnerability in the Theme Editor (admin/controller/design/theme.php) in OpenCart 4.0.2.3. In response to CVE-2024-36694, the codebase was refactored from theme.php to template.php — the class name changed from Theme to Template, the UI was updated from a form dropdown to a file browser, and file extension validation (.twig only) was added. However, the core vulnerability was never remediated. The save() method in template.php still accepts user-supplied Twig template code via POST input and stores it directly to the database without any sanitization, validation, or Twig sandboxing. When the modified template is rendered on the frontend, the injected code executes server-side. Using the payload {{['id']|filter('system')}}, an authenticated administrator achieves remote code execution as the web server user, including reverse shell access. The root cause remains unchanged across all versions: the Twig filter, map, and reduce filters are unrestricted, allowing execution of arbitrary PHP functions such as system(). No SSTI protection, code validation, or Twig sandbox has been implemented in any version.
Fonte⚠️ https://drive.google.com/file/d/1_ZCvICLKo8AOovDkKFHwsBxh-ciwbElS/view?usp=drive_link
Utilizador
 Schlop (UID 95727)
Submissão21/02/2026 17h12 (há 8 meses)
Moderação07/03/2026 11h59 (14 days later)
EstadoAceite
Entrada VulDB349659 [OpenCart 4.0.2.3 Incomplete Fix CVE-2024-36694 template.php save Elevação de Privilégios]
Pontos20

Interested in the pricing of exploits?

See the underground prices here!