ebourmalo/cookie-encrypter · Security
Bit flip attack vulnerability in cookie-encrypter
- GHSA ID
- GHSA-h63v-hw6g-x8hp
- CVE ID
- CVE-2024-53441
- Severity
- high
- Published
- Updated
- CVSS
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
- CVSS v3
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Description
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.
CWEs
- CWE-325 · Missing Cryptographic Step
- CWE-327 · Use of a Broken or Risky Cryptographic Algorithm
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 ↗