Tiny SVG image hides credit card theft code.
Apr 9, 2026 // 18:38 - Norina Velotta


A large-scale operation affecting almost 100 online shops that use the Magento e-commerce platform conceals code designed to steal credit card information within a tiny, pixel-sized SVG image.

When buyers click to finalize their purchase, they see a deceptive window that appears to authenticate credit card and address details.

Sansec, a company specializing in e-commerce security, discovered the operation. Their researchers suspect the criminals gained access through the PolyShell security hole, which was revealed in mid-March.

PolyShell impacts all Magento Open Source and Adobe Commerce stable version 2 installations, allowing unauthorized people to run code and take control of accounts.

Sansec cautioned that over half of vulnerable stores were targeted by PolyShell attacks, which in some instances installed payment card skimmers utilizing WebRTC for hidden data theft.

In this recent attack, researchers discovered malware injected into the target site’s HTML as a 1×1-pixel SVG image that includes an ‘onload’ command.

“The onload command contains the entire skimmer code, encoded in base64 within an atob() function and executed using setTimeout,” Sansec stated.

“This method avoids creating external script links that security scanners often detect. The complete malware resides invisibly, encoded as a single string attribute.”

When unsuspecting customers click the checkout button on compromised websites, a malicious script intercepts the click and generates a bogus “Secure Checkout” window, including fields for card information and billing addresses.

Payment details entered on this page are instantly validated using Luhn verification and then sent to the attacker, encrypted using XOR and obscured with base64 encoding in a JSON format.

Sansec found six domains used to steal the data, all hosted at IncogNet LLC (AS40663) in the Netherlands, with each domain receiving data from approximately 10 to 15 victims.

Sansec recommends the following measures to defend against this operation:

* Search for hidden SVG tags with an onload attribute using atob() and delete them from your website files.
* Check your browser’s localStorage for the presence of the _mgx_cv key, as this indicates that payment information may have been compromised.
* Monitor and block requests to /fb_metrics.php or any suspicious analytics-like domains.
* Block all internet traffic to the IP address 23.137.249.67 and related domains.

Currently, Adobe has not released a security patch to address the PolyShell flaw in released versions of Magento. A fix is only available in the pre-release version 2.4.9-alpha3+.

Adobe has also not responded to requests for comment on the matter.

Website owners/admins are advised to implement all possible protective measures and, if possible, update Magento to the latest beta release.

### tiny  #card  #code  #credit  #hides  #image.  #news  #svg  #theft   —   News