klesh opened a new pull request, #8895:
URL: https://github.com/apache/incubator-devlake/pull/8895

   ## Summary
   This PR fixes a security vulnerability where token encryption used 
AES-256-CBC with a deterministic IV and no message authentication.
   
   ## Changes
   - **AesEncrypt**: migrated to AES-256-GCM with a random 12-byte nonce per 
encryption
   - **AesDecrypt**: backward-compatible — tries GCM first, falls back to 
legacy CBC for existing data
   - **Tests**: updated to verify GCM format and that identical plaintexts 
produce different ciphertexts
   
   ## Security Impact
   - Eliminates deterministic IV (CWE-329 / CWE-330)
   - Adds message authentication via GCM (CWE-353)
   - Existing encrypted data remains decryptable without migration
   
   ## Files Changed
   - `backend/core/plugin/plugin_utils.go`
   - `backend/core/plugin/plugin_utils_test.go`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to