Saturday, November 7, 2026

Hackers Exploiting Magento Flaw to Execute Remote Code and Seize Full Account Access

A critical vulnerability dubbed “PolyShell” is actively being exploited across Magento and Adobe Commerce platforms.

Discovered by the Sansec Forensics Team and published on March 17, 2026, this flaw allows unauthenticated attackers to upload executable files via the platform’s REST API.

Because no official patch currently exists for production versions, thousands of online stores are at high risk of remote code execution (RCE) and complete account takeovers.

The PolyShell Vulnerability

The core issue resides in Magento’s REST API, specifically within the anonymous guest cart routes.

When a cart item includes a custom file option, the API processes an embedded file object containing base64-encoded data, a MIME type, and a filename.

The system fails to verify the option ID, does not check if the product actually requires a file upload, and critically lacks file extension restrictions.

This allows threat actors to easily bypass basic image header checks and upload malicious scripts directly to the server’s upload directory.

While the guest cart endpoints are vulnerable without any credentials, GraphQL mutations use a different code path and remain unaffected.

The vulnerability impacts various versions of the software differently:

  • Unrestricted file uploads affect all Magento Open Source and Adobe Commerce versions up to 2.4.9-alpha2.
  • Stored Cross-Site Scripting (XSS) impacts all versions prior to 2.3.5.
  • Remote Code Execution (RCE) relies on specific web server configurations, such as stock Nginx passing the index.php filename or Apache without specific PHP engine restrictions.
  • The flaw is only officially patched in the 2.4.9-alpha3+ pre-release branch.

Sansec researchers observed automated mass scanning and active exploitation beginning March 19, 2026.

Attackers are utilizing polyglot files to execute their attacks, which are malicious codes cleverly disguised as legitimate images like valid GIFs or PNGs.

The most common payloads involve a GIF89a polyglot dropped onto the server as an executable PHP file.

These web shells use hardcoded MD5 hashes to verify attacker authentication before executing arbitrary code or allowing further malicious file uploads.

Indicators of Compromise

Security teams should monitor their environments for the following indicators associated with the PolyShell attacks:

  • Payload filenames often include index.php, json-shell.php, bypass.phtml, c.php, rce.php, and ato_poc.html.
  • Attackers occasionally use Unicode obfuscation to hide filenames, such as encoding bypass.php to evade basic detection.
  • Authentication hashes hardcoded into the payloads include a17028468cb2a870d460676d6d6da3ad63706778e3 and 4009d3fa8132195a2dab4dfa3affc8d2.
  • Malicious probing has been tracked to dozens of IPs, including 2.217.245.213, 3.12.250.83, 18.220.50.153, and 198.186.130.10.

Until Adobe releases a comprehensive patch for current production environments, administrators must take immediate defensive actions.

The primary recommendation is to deploy a specialized Web Application Firewall (WAF) to block real-time exploitation attempts.

Furthermore, administrators must tightly restrict access to the pub/media/custom_options/ directory.

For Nginx servers, this involves ensuring strict location block rules with a deny directive, while Apache users must verify their .htaccess access control files are present and effective.

Finally, security teams should routinely scan their infrastructure to detect any dormant files, as uploaded malware remains on the disk even if initial execution fails.

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

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Exploit WordPress Core RCE Vulnerability in Over 240,000 Attack Attempts

Attackers have launched more than 240,000 exploit attempts against...

Hackers Use Fake GitHub Security Tools to Spread Malware, Infecting Over 2,000 Computers

Threat actors are distributing malware through GitHub repositories masquerading...

Insignary Releases Free Insignary-Chk Tool to Detect PHP2Shell and Node2Shell Exposure

Toronto, Canada, November 6th, 2026, CyberNewswire Free, read-only scanner helps...

Dark Project Ransomware Gang Claims 38 Victims Across 8 Countries, Targeting Healthcare and Manufacturing

Dark Project, an emerging financially motivated ransomware operation, has...

Hackers Use Fake Streaming Apps to Spread Mirax Android Malware and Steal Bank Accounts

Hackers are using streaming app lures to distribute Mirax....

Related Articles

Recent News