Defeating Magecart
Yet more websites have fallen victim to the same attack which resulted in the theft of credit card details from British Airways. Online retailer, Newegg, and Philippines media giant, ABS-CBN, are just two of many organisations to have been attacked successfully. Magecart's technique is not sophisticated, but is demonstratively effective. It relies on inserting malicious Javascript by compromising a third party or by attacking the target's infrastructure directly. Customers' credit card details are then skimmed and posted to websites controlled by Magecart, circumventing normal controls on such transactions. As UK researcher, Scott Helme, describes, there are relatively simple ways to defeat the Magecart threat. The first is to define a Content Security Policy which, as he explains, allows you to control where resources can be loaded from. The second, Subresource Integrity, ensures the resources being used on a webpage are what they're supposed to be. Anyone running an eCommerce site should read Scott's guide.