Why the encryption key matters

‍

Your store's encryption key isn't a minor setting. Magento uses it to protect stored secrets, including:

  • Payment gateway credentials, which connect your checkout to your payment provider.
  • Shipping and other integration credentials, which let your store talk to carriers, marketplaces and back-office systems.
  • Other encrypted values in your database, stored that way precisely because they shouldn't be readable.

If the key gets into the wrong hands, the protection on that data can be bypassed. There's precedent: in the 2024 CosmicSting attacks, stolen Magento encryption keys were used to forge API access. That isn't evidence of an attack here, but it shows why a leaked key needs replacing rather than ignoring.

What to do now

‍

If your store runs Amasty GDPR Pro or Premium, these are the steps:

  1. List your Amasty modules. Make an inventory of every Amasty extension and version on your store, and check it against Sansec's list of patched modules.
  2. Update GDPR to 2.15.3. This stops the encryption key being added to email links from now on. If you can't update straight away, disable the module temporarily.
  3. Rehearse, then rotate your encryption key. Emails sent before the fix may contain the old key, so it needs replacing, even if you've disabled the module. Rotation is now done from the command line, as Adobe removed the Admin screen for it in version 2.4.8. Rehearse it on a copy of your store and back up your configuration first, because re-encryption can't be undone.
  4. Book a rotation window. Rotating the key puts the store into maintenance mode, and every customer and admin user is logged out. Schedule it for a quiet trading period and let your team know in advance.
  5. Finish the job. Adobe's documentation confirms that rotating the key logs out customers and admins but not integration users, so existing API access isn't cut off. Reissue your payment gateway keys and integration tokens, and reset admin passwords.
  6. Check your store for anything unexpected. As Sansec recommends, scan your media folder (pub/media) for unexpected .php, .phtml, .phar and .svg files, and block PHP from running there, so nothing planted in that folder can run.

The GDPR flaw isn't the only Amasty fix to check. Sansec's wider list includes 7 critical entries and 53 rated high. The Order Attributes flaw was under active attack, with more than 12,000 attempts blocked by 15th June, and its fix (version 4.0.0) isn't backward compatible, so it needs testing before it goes live. Exploit code for this flaw has been published online several times since, most recently in mid-November, so any store still on an older version should treat updating as a priority. Advanced Product Reviews and Gift Card both had flaws that could let an attacker plant a file on your server without logging in, and Admin Actions Log (fixed in 2.8.1) wrote old encrypted settings, such as API keys, to its log in plain text.

What this means for you

‍

This isn't a reason to panic, but it is a reason to act. The fix is straightforward and the rotation can be planned. What matters is that it's done properly, rather than half done.

‍

It's also a reminder of a wider point. Patching is now a monthly job, not an event. By 25th October, 2026 had already logged 1.8 times the published security flaws of the whole of 2025. Every third-party extension on your store is part of your security, and each one needs patching on its own schedule. Predictability beats heroics: stores with a planned patching routine handle updates like this as normal maintenance, while stores without one end up firefighting.

‍

The same applies to the platform underneath. As we covered in our article on PHP2Shell, keeping your server software, platform and extensions up to date is what keeps an online store safe, fast and trading.