Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-22731— Improper Control of Generation of Code in Twig rendered views in shopware

Quick assessment

Affected
shopware platform
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Shopware是德国Shopware公司的一套开源电子商务软件。 Shopware 存在代码注入漏洞,该漏洞源于在 Twig 环境中添加 without the Sandbox extension 环境变量后,可以在 Twig 过滤器中引用 PHP 函数,如“map”、“filter”、“sort”。 这将允许模板调用任何全局 PHP 函数,从而执行任意代码。

CVSS 10.0 · Critical EPSS 1.33% · P70

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-22731

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper Control of Generation of Code in Twig rendered views in shopware
Source: CVE Program / CVE List V5
Vulnerability Description
Shopware is an open source commerce platform based on Symfony Framework and Vue js. In a Twig environment **without the Sandbox extension**, it is possible to refer to PHP functions in twig filters like `map`, `filter`, `sort`. This allows a template to call any global PHP function and thus execute arbitrary code. The attacker must have access to a Twig environment in order to exploit this vulnerability. This problem has been fixed with 6.4.18.1 with an override of the specified filters until the integration of the Sandbox extension has been finished. Users are advised to upgrade. Users of major versions 6.1, 6.2, and 6.3 may also receive this fix via a plugin.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Shopware 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Shopware是德国Shopware公司的一套开源电子商务软件。 Shopware 存在代码注入漏洞,该漏洞源于在 Twig 环境中添加 **without the Sandbox extension** 环境变量后,可以在 Twig 过滤器中引用 PHP 函数,如“map”、“filter”、“sort”。 这将允许模板调用任何全局 PHP 函数,从而执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
shopware platform < 6.4.18.1 -

II. Public POCs for CVE-2023-22731

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-22731

请登录查看更多情报信息。

Patches & Fixes for CVE-2023-22731 (1)

Vendor Advisories for CVE-2023-22731 (1)

Other References for CVE-2023-22731 (1)

Same Patch Batch · shopware · 2023-01-17 · 5 CVEs total

CVE-2023-22730 5.3 MEDIUM Improper Input Validation of Clearance sale in cart
CVE-2023-22734 4.3 MEDIUM Improper Input Newsletter subscription option validation in shopware
CVE-2023-22732 3.7 LOW Insufficient Session Expiration in Administration in shopware
CVE-2023-22733 2.7 LOW Improper Output Neutralization in Log Module in shopware

IV. Related Vulnerabilities

V. Comments for CVE-2023-22731

No comments yet


Leave a comment