The team behind the open source PrestaShop ecommerce platform has issued a public advisory to warn of zero day SQL injection attacks hitting merchant servers and planting code capable of stealing customer payment information.
An urgent advisory from PrestaShop warned that hackers are exploiting a “combination of known and unknown security vulnerabilities” to inject malicious code on ecommerce sites running the PrestaShop software.
“A newly found exploit could allow remote attackers to take control of your shop,” PrestaShop said, noting that the security defect could expose up to 300,000 third-party merchants to server compromises that expose sensitive data.
“While investigating this attack, we found a previously unknown vulnerability chain. At the moment, however, we cannot be sure that it’s the only way for them to perform the attack,” the team added.
PrestaShop, which has a high-profile Google partnership and is used on shops throughout the U.S. and Europe, has released software patches to cover the known vulnerabilities.
From the PrestaShop advisory:
“To the best of our understanding, this issue seems to concern shops based on versions 22.214.171.124 or greater, subject to SQL injection vulnerabilities. Versions 126.96.36.199 and greater are not vulnerable unless they are running a module or custom code which itself includes an SQL injection vulnerability. Note that versions 2.0.0~2.1.0 of the Wishlist (blockwishlist) module are vulnerable.”
The PrestaShop team said the attackers appear to be targeting shops using outdated software or modules, vulnerable third-party modules, or a yet-to-be-discovered (zero day) vulnerability.
“After the attackers successfully gained control of a shop, they injected a fake payment form on the front-office checkout page. In this scenario, shop customers might enter their credit card information on the fake form, and unknowingly send it to the attackers,” the team said.
“While this seems to be the common pattern, attackers might be using a different one, by placing a different file name, modifying other parts of the software, planting malicious code elsewhere, or even erasing their tracks once the attack has been successful,” PrestaShop added.
PrestaShop said the attackers might be using MySQL Smarty cache storage features as part of the attack vector and recommends that shops disable this rarely used feature as a mitigation to break the exploit chain.
PrestaShop also released instructions to help merchants identify signs of infections and recommended that ecommerce provides conduct a full audit of your site and make sure that no file has been modified nor any malicious code has been added.