PT-2024-35742 · Unknown · Cookie-Encrypter

Mathys Reboux

·

Published

2024-12-09

·

Updated

2024-12-12

·

CVE-2024-53441

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions cookie-encrypter version 1.0.1
Description The issue is related to a weakness in the encryption method used, allowing attackers to execute a bit flipping attack, specifically an AES CBC bit flipping attack, by exploiting the decryptCookie function in index.js. This enables attackers to edit encrypted cookies without decrypting them, using the publicly visible initialization vector (IV).
Recommendations For cookie-encrypter version 1.0.1, consider disabling the decryptCookie function in index.js as a temporary workaround until a patch is available. Restrict access to the decryptCookie function to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Use of a Broken Cryptographic Algorithm

Weakness Enumeration

Related Identifiers

CVE-2024-53441
GHSA-H63V-HW6G-X8HP

Affected Products

Cookie-Encrypter