Symlink Vulnerability in Flexbackup Package Allows Local File Overwrite
Summary
DEBIAN-CVE-2005-4802: Flexbackup 1.2.1 and earlier allows local users to overwrite files and execute code via a symlink attack on temporary files. Affects flexbackup versions < 1.2.1-3. Fixed in 1.2.1-3. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Flexbackup is a backup solution for Unix-like operating systems, designed to facilitate the backup of files and directories. It is known for its simplicity and effectiveness in managing backup tasks. However, versions 1.2.1 and earlier are susceptible to a vulnerability that allows local users to exploit temporary files through symlink attacks, potentially leading to unauthorized file overwrites and code execution.
Vulnerability Detail
The vulnerability arises from the way Flexbackup handles temporary files. Local users can create symbolic links (symlinks) that point to sensitive files, which the application may inadvertently overwrite during its operation. This flaw can be exploited to execute arbitrary code or modify critical system files, posing significant security risks to the integrity of the system.
How To Fix
Minimum fixed version
1.2.1-3
This is the first release that contains the fix.
sudo apt-get install --only-upgrade flexbackup
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can restrict access to the Flexbackup application to trusted users only, minimizing the risk of exploitation. Additionally, avoid running the application with elevated privileges unless necessary.
Conclusion
The Flexbackup package has a critical vulnerability that allows local users to exploit symlink attacks, leading to potential file overwrites and code execution. Users are strongly advised to update to the latest patched version to secure their systems. Utilizing tools like Vulert can further enhance monitoring and alerting for such vulnerabilities.
See every vulnerability recorded for flexbackup →
FAQ
A symlink attack involves creating a symbolic link that points to a file or directory, tricking an application into overwriting or accessing that file.
You can check your version of Flexbackup by running 'flexbackup --version' in the terminal. If it is 1.2.1 or earlier, it is vulnerable.
If left unaddressed, this vulnerability can lead to unauthorized access, data loss, or system compromise due to malicious code execution.
Yes, Vulert can monitor your application for open-source vulnerabilities in real-time using just a manifest file like package-lock.json. You can check your application using the Vulert playground without any signup.
Yes, restricting access to the application and running it with limited privileges can help mitigate the risk until a patch is applied.
References
Related vulnerabilities
Recent vulnerabilities recorded for flexbackup.