1.5 CVE-2014-5029

Path Traversal Patch

 

The web interface in CUPS 1.7.4 allows local users in the lp group to read arbitrary files via a symlink attack on a file in /var/cache/cups/rss/ and language[0] set to null. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-3537.
https://nvd.nist.gov/vuln/detail/CVE-2014-5029

Categories

CWE-59 : Improper Link Resolution Before File Access ('Link Following')
The software attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. Some people use the phrase "insecure temporary file" when referring to a link following weakness, but other weaknesses can produce insecure temporary files without any symlink involvement at all. "Zip slip" is an attack that uses file archives (e.g., ZIP, tar, rar, etc.) that contain filenames with path traversal sequences that cause the files to be written outside of the directory under which the archive is expected to be extracted [REF-1282]. It is most commonly used for relative path traversal (CWE-23) and link following (CWE-59). Some versions of Perl follow symbolic links when running with the -e option, which allows local users to overwrite arbitrary files via a symlink attack. Text editor follows symbolic links when creating a rescue copy during an abnormal exit, which allows local users to overwrite the files of other users. Antivirus update allows local users to create or append to arbitrary files via a symlink attack on a logfile. Symlink attack allows local users to overwrite files. Window manager does not properly handle when certain symbolic links point to "stale" locations, which could allow local users to create or truncate arbitrary files. Second-order symlink vulnerabilities Second-order symlink vulnerabilities Symlink in Python program Setuid product allows file reading by replacing a file being edited with a symlink to the targeted file, leaking the result in error messages when parsing fails. Signal causes a dump that follows symlinks. Hard link attack, file overwrite; interesting because program checks against soft links Hard link and possibly symbolic link following vulnerabilities in embedded operating system allow local users to overwrite arbitrary files. Server creates hard links and unlinks files as root, which allows local users to gain privileges by deleting and overwriting arbitrary files. Operating system allows local users to conduct a denial of service by creating a hard link from a device special file to a file on an NFS file system. Web hosting manager follows hard links, which allows local users to read or modify arbitrary files. Package listing system allows local users to overwrite arbitrary files via a hard link attack on the lockfiles. Hard link race condition Mail client allows remote attackers to bypass the user warning for executable attachments such as .exe, .com, and .bat by using a .lnk file that refers to the attachment, aka "Stealth Attachment." FTP server allows remote attackers to read arbitrary files and directories by uploading a .lnk (link) file that points to the target file. FTP server allows remote attackers to read arbitrary files and directories by uploading a .lnk (link) file that points to the target file. Browser allows remote malicious web sites to overwrite arbitrary files by tricking the user into downloading a .LNK (link) file twice, which overwrites the file that was referenced in the first .LNK file. ".LNK." - .LNK with trailing dot Rootkits can bypass file access restrictions to Windows kernel directories using NtCreateSymbolicLinkObject function to create symbolic link File system allows local attackers to hide file usage activities via a hard link to the target file, which causes the link to be recorded in the audit trail instead of the target file. Web server plugin allows local users to overwrite arbitrary files via a symlink attack on predictable temporary filenames. A Libcontainer used in Docker Engine allows local users to escape containerization and write to an arbitrary file on the host system via a symlink attack in an image when respawning a container. "Zip Slip" vulnerability in Go-based Open Container Initiative (OCI) registries product allows writing arbitrary files outside intended directory via symbolic links or hard links in a gzipped tarball. "Zip Slip" vulnerability in container management product allows writing arbitrary files outside intended directory via a container image (.tar format) with filenames that are symbolic links that point to other files within the same tar file; however, the files being pointed to can also be symbolic links to destinations outside the intended directory, bypassing the initial check.

References


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:apple:cups:1.7.4:*:*:*:*:*:*:*
Configuration 2
cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*

Exploits

id description date
No known exploits

CAPEC

id description severity
76 Manipulating Web Input to File System Calls
Very High
132 Symlink Attack
High
17 Using Malicious Files
Very High
35 Leverage Executable Code in Non-Executable Files
Very High

Sherlock® flash

Take a picture of your computer network in a few clicks !

The Sherlock® flash audit solution allows you to perform an audit to strengthen the security of your IT assets. Vulnerability analysis of your physical and virtual equipment. Patch planning by priority level and time available. Detailed and intuitive reporting.

Discover this offer

Sherlock® flash: 1st instant cybersecurity audit solution