Adobe has released a hotfix for the isolated patch that ensures only the latest encryption key is used for JWTs. If you have applied this hotfix, this module is no longer necessary.
As CosmicSting enables attackers to read any file, attackers can steal Magento's secret encryption key. This encryption key can be used to generate JSON Web Tokens with full administrative API access.
Adobe offers a solution to change the encryption key, but all it does is add an additional key and then attempts to re-encrypt existing secrets with this key. It does nothing to invalidate the old key that is still being referenced in app/etc/env.php
.
This module ensures that JWTs are only ever read using the latest encryption key. It is provided as-is and without any warranty or guarantees. Test extensively and use at own risk.
composer require sansec/magento2-module-cosmic-sting-jwt
bin/magento setup:upgrade
MIT License - Copyright (c) 2024 Sansec