Credit Card Skimmers Hit X-Cart and Magento Sites With Obfuscated JavaScript
Sector Threat Intelligence · 2 sources · Updated 3mo ago · First seen Feb 7, 2022

Researchers found a compromised X-Cart e-commerce site running two separate payment skimmers: a basic server-side stealer and a more advanced client-side JavaScript skimmer. The server-side malware captured base64-encoded payment POST data and saved it to a fake .jpg file, while the browser-based skimmer validated that a credit card number was present before exfiltrating checkout data to attacker infrastructure. Analysts traced the X-Cart exfiltration path to metahtmlhead[.]com/folder/ip/zxc.php, with the destination assembled through DOM-based domain construction to hinder detection.
The JavaScript skimmer used layered obfuscation and an anti-debugging technique tied to wrapper-function length, forcing researchers to brute-force parts of the code to recover its behavior. A similar skimmer was later identified on a Magento 1.x site, using the same obfuscation style and a matching URL path structure but sending stolen payment data to winsiott[.]com/folder/ip/stt.php. The overlap in code design, evasion methods, and infrastructure indicates a broader web-skimming campaign targeting multiple e-commerce platforms.


