PolyShell Flaw Enables Unauthenticated RCE on Magento Stores

· Original article ↗

Summary

PolyShell affects Magento Open Source and Adobe Commerce 2. The unauthenticated flaw can enable RCE or stored XSS via REST API file uploads. No active exploitation has been observed; Adobe’s fix is available only in a 2.4.9 alpha.

Key points

  • The flaw involves file uploads through Magento’s REST API custom options, which process base64-encoded file data and write it under pub/media/custom_options/quote/.
  • Polyglot files may enable remote code execution or stored XSS leading to account takeover, depending on web server configuration.
  • Sansec says the exploit method is circulating and expects automated attacks, but reports no signs of active exploitation.
  • Adobe’s fix is available only in the second alpha release of version 2.4.9, leaving production versions without that fix.
  • Administrators are advised to restrict access to pub/media/custom_options, check web server rules, and scan for uploaded shells or backdoors.

Article Details

Vulnerability Types
  • Unauthenticated file upload
  • Remote code execution
  • Stored cross-site scripting
Affected Versions
  • Magento Open Source 2.x stable versions
  • Adobe Commerce 2.x stable versions
Exploitation Status
not_reported
Exploit Availability
claimed_or_private
Patch Status
partial
Workarounds
  • Restrict access to pub/media/custom_options/ and verify that nginx or Apache rules prevent access.
  • Scan stores for uploaded shells, backdoors, or other malware.

MITRE ATT&CK

Vendors

Products

Related Articles