Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.31 KB

File metadata and controls

22 lines (13 loc) · 1.31 KB

Important Notice

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.

Cosmic Sting JWT

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.

Installation

composer require sansec/magento2-module-cosmic-sting-jwt
bin/magento setup:upgrade

License

MIT License - Copyright (c) 2024 Sansec