What happened
Sansec reported on 17 November 2026 that the Rootways Authorize.net CIM extension for Magento 2 (composer package rootways/module-authorizecim) has a server-side request forgery flaw in its Apple Pay endpoint, /rootways_authorizecim/applepay/index. The validationUrl parameter is fetched without any check on host or protocol and the response is returned to the visitor, with no login needed. Because file:// is accepted too, an attacker can read files on the server.
Sansec found it while investigating a hacked store. On 15 November the attacker read app/etc/env.php (database password and encryption key), found an Adminer database tool listening on an internal port, logged in to it through the same flaw and created an admin account. From the admin panel they added a web shell at pub/media_sync.php and a skimmer loader in the design/head/includes setting that sent card data out over a WebSocket.
Every version before 4.1.5 is vulnerable, including 4.1.4 from 29 October. Rootways released 4.1.5 on 17 November.
What to do
- Update the extension to 4.1.5.
- Until then, turn Apple Pay off in the extension (payment/rootways_authorizecim_option_applepay/active = 0) and flush the cache.
- If Apple Pay was enabled, assume the store's secrets were read: change the database password, rotate the encryption key, review admin users, and check core_config_data for scripts in design/head/includes.
- Look for pub/media_sync.php and PHP files in var/report/, and make sure database tools such as Adminer and an unprotected Redis are not reachable from the web server.
