CVE-2026-50877
Description
SuperBin v1.0.0 generates ZIP archives with attacker-controlled entry names, enabling directory traversal when extracted on Windows.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
SuperBin v1.0.0 generates ZIP archives with attacker-controlled entry names, enabling directory traversal when extracted on Windows.
Vulnerability
Zhoros SuperBin v1.0.0 contains a directory traversal vulnerability in its multiple-file download feature. The MultipleFileWriter in fileWriters.go creates ZIP entries using zipWriter.Create(fileHeader.Filename), where fileHeader.Filename is taken directly from the multipart upload filename without sanitization. This allows an attacker to supply filenames containing backslash traversal sequences (e.g., ..\..\poc.txt). On Unix-like servers, Go's multipart handling strips forward slashes but leaves backslashes intact, so the traversal string is preserved in the ZIP archive [1].
Exploitation
An attacker must be able to upload multiple files to SuperBin v1.0.0. The attacker crafts a multipart part whose filename includes backslash traversal, such as ..\..\superbin-poc.txt. After uploading, the attacker requests the ZIP download of those files. The generated ZIP contains an entry with the traversal-bearing name. When a Windows-style extractor (e.g., WinRAR, 7-Zip, or the built-in Windows ZIP handler) extracts the archive, it interprets the backslash as a path separator, causing the file to be written outside the intended extraction directory [1].
Impact
Successful exploitation results in arbitrary file placement on the filesystem of any user or system that extracts the malicious ZIP on Windows. The server-side upload and storage are not directly compromised; the impact is limited to downstream extraction. The attacker can overwrite or create files in arbitrary locations relative to the extraction directory, potentially leading to code execution or system compromise depending on the extraction context [1].
Mitigation
No fix has been disclosed in the available references as of the publication date. Users should avoid extracting SuperBin-generated ZIP archives on Windows systems, or use extraction tools that reject entries containing path traversal characters. Administrators may consider disabling the multiple-file download feature until a patch is released [1].
AI Insight generated on Jun 15, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"Missing sanitization of multipart filenames used as ZIP entry names allows backslash traversal characters to be preserved in the archive."
Attack vector
An attacker uploads multiple files to SuperBin 1.0.0 using a multipart part whose filename contains backslash traversal characters, such as `..\..\superbin-poc.txt` [ref_id=1]. The server preserves the attacker-supplied filename when creating ZIP entries for multiple-file downloads. When a Windows-style extractor processes the resulting ZIP archive, it interprets the backslashes as directory separators, causing the file to be written outside the intended extraction directory [CWE-22].
Affected code
The vulnerable code is in `fileWriters.go` in the `MultipleFileWriter` function. It creates ZIP entries using `zipWriter.Create(fileHeader.Filename)`, passing the multipart file header filename directly as the archive entry name without sanitization.
What the fix does
The advisory does not include a published patch. The recommended remediation would be to sanitize or reject multipart filenames containing path traversal characters (such as `..` and backslashes) before using them as ZIP entry names in `fileWriters.go`.
Preconditions
- authAttacker must be able to upload files to SuperBin 1.0.0
- configThe generated ZIP archive must be extracted by a Windows-style extractor that treats backslash as a path separator
Reproduction
Upload multiple files to SuperBin 1.0.0 using a multipart part whose filename contains backslash traversal, such as `..\..\superbin-poc.txt`. Request the multiple-file ZIP download generated by SuperBin for those uploaded files. Inspect the ZIP central directory and observe that the entry name preserves the backslash traversal string. Extract the ZIP with a Windows-style extractor that treats backslash as a path separator. Observe the marker file written outside the selected extraction directory.
Generated on Jun 15, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
1News mentions
0No linked articles in our index yet.