Skip to content

Bytecode Viewer v2.10.x Zip Slip

Moderate
Konloch published GHSA-3wq9-j4fc-4wmc Jan 11, 2022

Package

the.bytecode.club. (Bytecode Viewer)

Affected versions

v2.10.16

Patched versions

v2.11.0

Description

Impact

Affected versions of the package are vulnerable to Arbitrary File Write via Archive Extraction (AKA "Zip Slip").

The vulnerability is exploited using a specially crafted archive that holds directory traversal filenames (e.g. ../../evil.exe). The Zip Slip vulnerability can affect numerous archive formats, including zip, jar, tar, war, cpio, apk, rar and 7z. The attacker can then overwrite executable files and either invoke them remotely or wait for the system or user to call them, thus achieving remote command execution on the victim’s machine.

The impact of a Zip Slip vulnerability would allow an attacker to create or overwrite existing files on the filesystem. In the context of a web application, a web shell could be placed within the application directory to achieve code execution.

Patches

All users should upgrade to BCV v2.11.0 when possible.
c968e94b2c93da434a4ecfac6d08eda162d615d0
1ec02658fe6858162f5e6a24f97928de6696c5cb

Workarounds

There are no recommended work arounds as it's a core component upon opening any zip file inside of BCV.

References

You can find more information on this website https://snyk.io/research/zip-slip-vulnerability

For more information

If you have any questions or comments about this advisory:

Credits for finding/patching

All credits for the discovery of this vulnerability belong to @ready-research. All credits for patching this vulnerability belong to @ThexXTURBOXx

Severity

Moderate

CVE ID

CVE-2022-21675

Weaknesses

No CWEs