You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a directory traversal issue in the unzipTo function in File.scala. The issue allows a zip file containing path traversal filenames to write outside the target directory. This can result in applications using better-files to be vulnerable to arbitrary file write/overwrite. This sort of vulnerability can result in tampering exploits to full system takeover of the application server.
Issue Description
There is a directory traversal issue in the unzipTo function in File.scala. The issue allows a zip file containing path traversal filenames to write outside the target directory. This can result in applications using better-files to be vulnerable to arbitrary file write/overwrite. This sort of vulnerability can result in tampering exploits to full system takeover of the application server.
ZipSlip Vulnerability
Proof of Concept
To create bad.zip, run the following command with good.txt in the current directory and evil.txt in the directory above the current directory.
poc.scala
Observe that good.txt is written to the tempdir and evil.txt is written to a directory above the tempdir.
The text was updated successfully, but these errors were encountered: