Unpatched StyleSmuggler Flaw Exploited to Install Backdoors on Magento Stores

· Original article ↗

Summary

Attackers are exploiting the unauthenticated StyleSmuggler flaw in Magento Open Source and Adobe Commerce to execute code and install persistent backdoors. Two stores were confirmed compromised; Adobe had not released a fix as of September 6.

Key points

  • Sansec said exploitation began September 4; Disrex independently reported two Magento Open Source stores compromised and a third attacked but not breached.
  • Sansec said versions 2.4.6-p15 through 2.4.9 are affected; Adobe had not published an advisory, CVE, patch, or workaround as of September 6.
  • The reported attack plants PHP code in a Magento-written file and triggers its execution through the Payment Transaction Failed Reminder email process.
  • The implant runs as the site user, disguises itself as a kernel thread, and uses a cron entry to restart every five minutes.
  • Disrex said it found no evidence of data exfiltration or other listed follow-on activity on the two stores; both were contained, and credential rotation was underway.
  • Sansec advised temporarily disabling GraphQL until a fix is available. Disrex also published unofficial mitigations, while warning that some rules block the campaign as observed rather than fixing the flaw.
  • Disrex said a scanner reported one infected store clean because its scan was limited to the document root, while the implant was installed in the account's home directory.

Article Details

Vulnerability Types
  • Unauthenticated remote code execution
Affected Versions
  • Magento Open Source 2.4.6-p15 through 2.4.9
Exploitation Status
active
Exploit Availability
unknown
Patch Status
unavailable
Workarounds
  • Temporarily disable GraphQL until Adobe releases a fix.
  • Add proc_open to PHP's disable_functions.
  • Mount /tmp, /var/tmp, and /dev/shm with noexec.

Indicators of compromise

TypeIndicatorContext
DOMAIN247[.]cdnflare[.]xyzMalware download host listed by Sansec.
IPV45[.]181[.]86[.]133Attacker source address sending requests in bulk, according to Disrex.
IPV488[.]216[.]72[.]181Attacker source address listed by Sansec.
IPV499[.]84[.]67[.]186Command-and-control address listed by Sansec for WebSocket over TLS.
SHA256251fabd50d7b18a8b5e1b3ef5d64e7198c17244778f6461fb1ab07f6169bf220SHA-256 of the implant running in memory on one Disrex store.
SHA2568334b434fa3fe9f59cebe9609b11e0b1fd19d10212c45c705adec1902a1d06efSHA-256 of the implant file found on disk at both Disrex stores.
SHA256e315687a1dfe61ef4a5a5642214db6d3b2b05d81391285eebc2af664641a26a7SHA-256 of Sansec's sample of the implant.

MITRE ATT&CK

Vendors

Products

Tools

Industries

Related Articles