SQL injection in Magento Open Source and Adobe Commerce (formerly Magento Commerce) - #VU18094

 

SQL injection in Magento Open Source and Adobe Commerce (formerly Magento Commerce) - #VU18094

Published: March 29, 2019 / Updated: June 7, 2019


Vulnerability identifier: #VU18094
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: N/A
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Adobe
Affected software:
Magento Open Source
Adobe Commerce (formerly Magento Commerce)

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to insufficient sanitization of user-supplied data passed via "ids[0][product_id][to]" HTTP GET parameter to "/catalog/product_frontend_action/synchronize" URL. A remote non-authenticated attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.

Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.

Exploitation example:

http://[host]/catalog/product_frontend_action/synchronize?
    type_id=recently_products&
    ids[0][added_at]=&
    ids[0][product_id][from]=?&
    ids[0][product_id][to]=))) OR (SELECT 1 UNION SELECT 2 FROM DUAL WHERE 1=1) -- -	

Remediation

Install updates from vendor's website.

Sources