cve/2023/CVE-2023-46233.md

19 lines
1.4 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2023-46233](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-46233)
![](https://img.shields.io/static/v1?label=Product&message=crypto-js&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%204.2.0%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-328%3A%20Use%20of%20Weak%20Hash&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-916%3A%20Use%20of%20Password%20Hash%20With%20Insufficient%20Computational%20Effort&color=brighgreen)
### Description
crypto-js is a JavaScript library of crypto standards. Prior to version 4.2.0, crypto-js PBKDF2 is 1,000 times weaker than originally specified in 1993, and at least 1,300,000 times weaker than current industry standard. This is because it both defaults to SHA1, a cryptographic hash algorithm considered insecure since at least 2005, and defaults to one single iteration, a 'strength' or 'difficulty' value specified at 1,000 when specified in 1993. PBKDF2 relies on iteration count as a countermeasure to preimage and collision attacks. If used to protect passwords, the impact is high. If used to generate signatures, the impact is high. Version 4.2.0 contains a patch for this issue. As a workaround, configure crypto-js to use SHA256 with at least 250,000 iterations.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/anthonykirby/lora-packet