MageCart Scripts Hosted on GitHub Used to Skim E-Commerce Websites

May 8, 2019
MageCart skimmer script

Security experts discovered the Magecart skimmer scripts used to compromise a few hundred e-commerce websites worldwide hosted on GitHub.

 

Security firms have monitored the activities of a dozen Magecart groups at least since 2015. The gangs use to implant skimming script into compromised online stores in order to steal payment card data on, but they are quite different from each other.

 

The list of victims of Magecart groups is long and includes several major platforms such as British Airways, Newegg, Ticketmaster, and Feedify. ​​

 

Early April, security research firm issued a new comprehensive report on the analysis of JavaScript-sniffers – a type of malware designed to steal customer payment data from online stores. 2440 infected e-commerce websites with a total of around 1.5 million unique daily visitors whose data could have been compromised, were analyzed by researchers.

 

Security Experts discovered a MageCart skimmer script hosted on Github that was uploaded on April 20 and quickly removed by the platform after the experts reported the discovery to the company. This latest skimmer is a hex-encoded piece of JavaScript code that was uploaded to GitHub by user momo33333, who, as it happens, had just joined the platform on that day as well.

 

Security researchers observed momo33333 during the process of setting up the skimmer script. The user initially started with a couple of tests, the published the final obfuscated skimmer payload, ready to be used in campaigns against Magento-based e-commerce stores. Just like with any other kind of third-party plugins, compromised Magento sites are loading this script within their source code, right after the CDATA script and/or right before the </html> tag:

 

It’s worth noting that the compromised Magento sites will remain at risk, even if the GitHub-hosted skimmer is taken down. Indeed, attackers can easily re-infect them in the same manner they initially injected the first one. Querying the urlscan.io and PublicWWW search engines it is possible to determine that at least a couple of hundred websites were compromised using the Magecart skimmers script hosted to GitHub.

 

It is critical for e-commerce site owners to keep their systems and its plugins up-to-date, as well as using secure authentication methods. Over the past year, thousands of sites are being hacked and they are constantly posing risks for online shoppers. Users must always be protected at all times.

 

About the author

Leave a Reply