Vulnerability · Published Aug 15, 2024 · Assigned by GitHub_M

CVE-2024-43373webcrack has an Arbitrary File Write Vulnerability on Windows when Parsing and Saving a Malicious Bundle

High 7.7

In plain English

A high-severity improper input validation in webcrack from j4k0xb. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.4%top 60.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmwebcrack2.14.1GHSA-ccqh-278p-xq6w

Affected products (as reported)

VendorProductVersions
j4k0xb webcrack <= 2.14.0

Weakness: CWE-20, CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L

References