SQL Injection Affecting magento/community-edition package, versions >2.0.0, <2.1.17>2.2.0, <2.2.8>2.3.0, <2.3.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
17.18% (97th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MAGENTOCOMMUNITYEDITION-174030
  • published30 Mar 2019
  • disclosed29 Mar 2019
  • creditCharles Fol, Ambionics Security

Introduced: 29 Mar 2019

CVE-2019-7139  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade magento/community-edition to version 2.1.17, 2.2.8, 2.3.1 or higher.

Overview

magento/community-edition is a modern cloud eCommerce platform.

Affected versions of this package are vulnerable to SQL Injection. A bug in both internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php and lib/Varien/Db/Adapter/Pdo/Mysql.php allows for a SQLi vector in Magento\Catalog\Controller\Product\Frontend\Action\Synchronize.

PoC

by Charles Fol

    https://magento2website.com/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) -- -

CVSS Scores

version 3.1