campeon23 / split-fetcher

The code is a concurrent file downloader in Go that splits a file into multiple parts, downloads them in parallel, and assembles the final file, with support for Etag validation to ensure file integrity.
MIT License
1 stars 0 forks source link

Implement HMAC Authentication in CBC Mode for Encryption Package #63

Open campeon23 opened 1 year ago

campeon23 commented 1 year ago

Description: In the encryption.go package, there is potential vulnerability when using the CBC mode in the EncryptFile function. The absence of a message authentication method can result in unauthorized alterations of the ciphertext without detection during decryption. To mitigate this risk and ensure the integrity and authenticity of the encrypted data, implement HMAC or a similar message authentication mechanism.

Details:

Acceptance Criteria:

Notes: The implementation of HMAC will not only enhance the security of the encryption mechanism but also align our cryptography practices with industry standards. It's crucial to address this as a top priority due to its critical severity.

Severity: Critical

campeon23 commented 1 year ago

Re-writing ticket