PT-2020-14225 · Symfony+1 · Symfony/Expression-Language+1

Craig Blanchette

+1

·

Published

2020-08-19

·

Updated

2021-11-18

·

CVE-2020-15146

CVSS v3.1

9.6

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions SyliusResourceBundle versions prior to 1.3.14 SyliusResourceBundle versions 1.4.0 through 1.4.6 SyliusResourceBundle versions 1.5.0 through 1.5.1 SyliusResourceBundle versions 1.6.0 through 1.6.3
Description The issue arises from request parameters not being sanitized properly when injected inside an expression evaluated by the symfony/expression-language package. This allows an attacker to access any public service by manipulating the request parameter, potentially leading to Remote Code Execution.
In a specific example, visiting a route with a specially crafted id parameter, such as /route?id="~service('doctrine').getManager().getConnection().executeQuery('DELETE * FROM TABLE')~", can result in the execution of a query on the currently connected database.
To identify this issue in an application, look for routing definitions that use request parameters inside the expression language.
Recommendations For SyliusResourceBundle versions prior to 1.3.14, update to version 1.3.14 or later. For SyliusResourceBundle versions 1.4.0 through 1.4.6, update to version 1.4.7 or later. For SyliusResourceBundle versions 1.5.0 through 1.5.1, update to version 1.5.2 or later. For SyliusResourceBundle versions 1.6.0 through 1.6.3, update to version 1.6.4 or later. As a temporary workaround, consider adding addslashes in OptionsParser::parseOptionExpression to sanitize user input before evaluating it using the expression language.

Exploit

Fix

Special Elements Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-15146
GHSA-H6M7-J4H3-9RF5

Affected Products

Syliusresourcebundle
Symfony/Expression-Language