GHSA-h63v-hw6g-x8hp
Bit flip attack vulnerability in cookie-encrypter
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | cookie-encrypter | <= 1.0.1 | no fix listed |
Details
As written in the advisory (Markdown source, shown as plain text).
due to a weakness in the encryption method used in cookie-encrypter an attack can use the world visible IV to edit encrypted cookies without decrypting the cookie itself. This is known as an AES CBC bit flipping attack.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2024-53441
- https://github.com/ebourmalo/cookie-encrypter/issues/9
- https://crypto.stackexchange.com/questions/66085/bit-flipping-attack-on-cbc-mode
- https://gist.github.com/mathysEthical/f45f1503f87381090e38a33c50eec971
- https://github.com/ebourmalo/cookie-encrypter
- https://mathys.reboux.pro/CVE/2024/53441