Vulnerability Management

Magento stores vulnerable to ‘PolyShell’ exploit

Adobe released an emergency patch for a critical vulnerability in its Magento 2 e-commerce platform. Pictured: The Adobe logo is displayed on the side of the Adobe Systems headquarters Jan. 15, 2010, in San Jose, Calif. (Photo by Justin Sullivan/Getty Images)

As reported by Bleeping Computer, a critical vulnerability named "PolyShell" has been disclosed, impacting all stable versions of Magento Open Source and Adobe Commerce. This flaw permits unauthenticated code execution and account takeover, posing a significant risk to online retailers.

The "PolyShell" vulnerability stems from how Magento's REST API handles file uploads for cart item custom options. Specifically, when a product option is set to type "file," the system processes an embedded file_info object containing base64-encoded data. This allows attackers to upload a polyglot file, which can act as both an image and a script, to the server's pub/media/custom_options/quote/ directory. Depending on server configuration, this can lead to remote code execution or account takeover through stored cross-site scripting (XSS). While Adobe has released a fix in an alpha version of 2.4.9, production versions remain vulnerable. eCommerce security firm Sansec warns that exploit methods are already circulating, anticipating automated attacks soon.

Until Adobe releases a patch for production versions, store administrators are advised to restrict access to the custom options upload directory and verify their web server configurations. Scanning for existing malware is also recommended.

Source: Bleeping Computer

Related Events

Get daily email updates

SC Media's daily must-read of the most current and pressing daily news

By clicking the Subscribe button below, you agree to SC Media Terms of Use and Privacy Policy.

You can skip this ad in 5 seconds