CVE-2024-53441: Bit flip attack vulnerability in cookie-encrypter
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.
Published Dec 9, 2024 · Updated Dec 12, 2024
Affected packages
cookie-encrypter
- Ecosystem
- npm
- Affected
- <= 1.0.1
- Fixed in
- No patched version yet
- Check
npm ls cookie-encrypter
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to mathysEthical.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53441
- https://gist.github.com/mathysEthical/f45f1503f87381090e38a33c50eec971
- https://mathys.reboux.pro/CVE/2024/53441
- https://github.com/ebourmalo/cookie-encrypter/issues/9
- https://crypto.stackexchange.com/questions/66085/bit-flipping-attack-on-cbc-mode
- https://github.com/advisories/GHSA-h63v-hw6g-x8hp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
