Unauthenticated cookie tampering via CBC malleability
Published Dec 9, 2024 · Updated Dec 11, 2024
Missing ciphertext authentication in cookie-encrypter 1.0.1 and earlier allows remote attackers to alter encrypted cookie values. The index.js decryptCookie function accepts a client-supplied IV and AES-CBC ciphertext without verifying integrity, so controlled IV bit flips produce predictable plaintext changes. Any application that trusts decrypted cookie fields for authorization exposes those fields to unauthenticated tampering; the demonstrated case changes a guest role to admin.
Summary
What happened
Missing ciphertext authentication in cookie-encrypter 1.0.1 and earlier allows remote attackers to alter encrypted cookie values. The index.js decryptCookie function accepts a client-supplied IV and AES-CBC ciphertext without verifying integrity, so controlled IV bit flips produce predictable plaintext changes. Any application that trusts decrypted cookie fields for authorization exposes those fields to unauthenticated tampering; the demonstrated case changes a guest role to admin.
The record
- CVE
- CVE-2024-53441
- Published
- Dec 9, 2024
- Updated
- Dec 11, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-325, CWE-327, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 9, 2024CVE publishedPublication date reported by the CVE source.
- Dec 11, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Cookie role bit-flipping proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo