-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
area: infrastructureInstallation and startup of LocalStack and componentsInstallation and startup of LocalStack and componentsstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked on
Description
Hi, I found a potential security issue in your encryption code.
The AES-GCM mode uses a static IV (b"0" * 16) when no IV is provided:
iv = iv or b"0" * BLOCK_SIZE
Using a fixed IV in AES-GCM is insecure. It breaks the guarantees of confidentiality and integrity if reused with the same key.
Please consider generating a random IV (e.g., os.urandom(12)) for each encryption to follow best practices.
Thanks.
49F0
Metadata
Metadata
Assignees
Labels
area: infrastructureInstallation and startup of LocalStack and componentsInstallation and startup of LocalStack and componentsstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked on