(0Day) BusyBox libarchive Symlink Directory Traversal Arbitrary File Creation Vulnerability
The libarchive component in BusyBox does not properly validate a user-supplied path before using it in file operations. A remote attacker could exploit this to create arbitrary files in the context of the current user, provided the target opens a malicious page or file.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to create arbitrary files on affected installations of BusyBox. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the archive extraction code joins an attacker-controlled path from the archive onto the destination directory without checking for symlinks or parent-directory segments, allowing writes outside the target folder.
Impact
An attacker could create arbitrary files as the current user, but only if the victim opens a malicious page or file; the advisory offers no further detail on what those files could achieve.
What the attacker needed
Victim opens a malicious page or file
The fix
The path taken from the archive should be validated before any file operation, rejecting entries that escape the destination directory; the text does not say a fix was released.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program unpacks an archive, it reads file names from inside the archive and writes files using those names. If it trusts those names without checking them, a crafted archive can make it write files outside the intended folder. Here the archive-handling code in BusyBox, a set of small Unix tools, fails to check the path, so a malicious archive could place files wherever the user running it has permission.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.