CVE-2024-43373 webcrack has an Arbitrary File Write Vulnerability on Windows when Parsing and Saving a Malicious Bundle
An attacker can overwrite arbitrary files on Windows systems via path traversal in webcrack, potentially leading to arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-43373?
CVE-2024-43373 is a high-severity path traversal vulnerability in j4k0xb webcrack, published on 15 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
webcrack is a tool for reverse engineering javascript. An arbitrary file write vulnerability exists in the webcrack module when processing specifically crafted malicious code on Windows systems. This vulnerability is triggered when using the unpack bundles feature in conjunction with the saving feature. If a module name includes a path traversal sequence with Windows path separators, an attacker can exploit this to overwrite files on the host system. This vulnerability allows an attacker to write arbitrary `.js` files to the host system, which can be leveraged to hijack legitimate Node.js modules to gain arbitrary code execution. This vulnerability has been patched in version 2.14.1.
Which versions are affected by CVE-2024-43373?
2 open source packages ship an affected version, including webcrack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
webcrack npm | All versions | 2.14.1 |
webcrack npm | All versions | 2.14.1 |
Products include J4k0xb Webcrack.
How do I fix CVE-2024-43373?
Upgrade webcrack to 2.14.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-43373 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43373 exists.
Sources
Also known as GHSA-ccqh-278p-xq6w.