Cyber Security News

Magecart Campaign Deploys 50+ Malicious Scripts to Hijack E-Commerce Transactions

A sophisticated and expansive Magecart campaign has been uncovered, marking a dangerous evolution in client-side attacks.

Security researchers have identified a global operation utilizing over 50 distinct malicious scripts to hijack checkout and account creation flows across dozens of e-commerce platforms.

Unlike traditional skimming attacks that “listen” for data, this campaign actively manipulates the user experience with modular, localized payloads designed to bypass modern security controls.

The campaign stands out for its high degree of customization. The attackers have developed specific payloads for a wide range of payment gateways, including Stripe, Mollie, PagSeguro, OnePay, and PayPal.

Instead of a one-size-fits-all skimmer, the malware detects the payment processor in use and deploys a matching “fake” payment form.

For instance, code analysis reveals a function explicitly designed to block legitimate Stripe iframes (blockStripe()), preventing the secure payment window from loading.

BlockStripe function.

In its place, the malware injects a visually identical phishing iframe that captures sensitive data before it is encrypted by the payment provider.

Advanced Anti-Forensics and Evasion

The operators behind this campaign have integrated significant anti-forensics capabilities to evade detection by security scanners and researchers.

  • Luhn-Valid “Junk” Data: Code snippets recovered from the attack show logic that validates input using the Luhn algorithm. If the input is detected as test data or doesn’t meet specific criteria, the script may feed “junk” data or remain dormant to avoid raising alarms during security audits.
  • Hidden Inputs: The scripts dynamically inject hidden input fields (e.g., <input id=”fuckoff_my_friend” …>) into the DOM. These fields serve as data exfiltration points that are invisible to the user but accessible to the attacker’s command-and-control (C2) infrastructure.
  • Silent Skimming: The malware operates asynchronously, ensuring that the legitimate checkout process continues without interruption, leaving the victim unaware that their data has been intercepted.

Most alarmingly, this campaign signals a strategic shift from simple credit card theft to full identity compromise.

In some documented instances, attackers have used stolen credentials to create rogue administrator accounts within the victim’s e-commerce CMS, ensuring they retain access even if the initial injection vulnerability is patched.

The scripts are designed to harvest not just payment data, but also login credentials, personal identifiable information (PII), and account recovery details.

This data aggregation enables Account Takeover (ATO) attacks and allows threat actors to establish long-term persistence.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir

Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago