Cybersecurity news

Jessica Doner

Back to the list

Hackers Abuse Magento CMS Blocks to Infect Online Stores and Evade Malware Detection

GBHackers,

Hackers injected JavaScript into Magento CMS blocks to maintain access to compromised stores while hiding malicious responses from security scanners.

Malware and ransomware

Overview

HackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher are injecting malicious JavaScriptThe programming language that web browsers run to make web pages interactive, and that also runs on servers into Magento CMS blocks to infect online stores and evade malwareSoftware built to steal data, spy on users, lock files, or take control of a computer detection. This technique allows the attackers to maintain access to compromised storefronts while hiding their presence from security scannersUsing automated tools to probe computers, networks, or code for known security flaws and missing patches. The campaign has affected 953 stores since July 2025, with 83 specific victims identified in the latest wave. The attackers store their code in the cms_block databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software table, which lets the malicious scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application enter pages through legitimate storefront content. This method is significant because it persists even if the original loaderA stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads domainThe human-readable name for a website or a centrally managed group of workplace computers is blocked, as the code remains in the browser's localStorage. As a result, 83 online stores are currently running compromised code that can execute on subsequent page views.

Terms in this story

Hackers
A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
JavaScript
The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
script
A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
Malware
Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
scanners
Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
database
An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
loader
A stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads. Criminal groups specialize in spreading a stealthy loader through spam or fake downloads and then charge ransomware and infostealer operators to deliver their malware onto those infected PCs. Security+ objective 2.4 lists the term
domain
The human-readable name for a website or a centrally managed group of workplace computers. In security stories, domain refers either to a web address that criminals register for phishing or to an organization's internal computer network managed by a central server.
vulnerability
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
server
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
persistence mechanism
The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
key
The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.

Read the full article on GBHackers (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related