1.2 CVE-2013-6891
Exploit Path Traversal Patch
lppasswd in CUPS before 1.7.1, when running with setuid privileges, allows local users to read portions of arbitrary files via a modified HOME environment variable and a symlink attack involving .cups/client.conf.
https://nvd.nist.gov/vuln/detail/CVE-2013-6891
Categories
CWE-59 : Improper Link Resolution Before File Access ('Link Following')
The product 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
CONFIRM Patch Exploit
http://advisories.mageia.org/MGASA-2014-0021.html |
http://www.cups.org/blog.php?L704 |
http://www.cups.org/str.php?L4319 Exploit Patch |
MANDRIVA
SECUNIA
56531 Vendor Advisory |
UBUNTU
CPE
cpe | start | end |
---|---|---|
Configuration 1 | ||
cpe:2.3:a:apple:cups:1.7:rc1:*:*:*:*:*:* | ||
cpe:2.3:a:apple:cups:*:*:*:*:*:*:*:* | <= 1.7.0 | |
cpe:2.3:a:apple:cups:1.7.1:b1:*:*:*:*:*:* | ||
Configuration 2 | ||
cpe:2.3:o:canonical:ubuntu_linux:12.10:*:*:*:*:*:*:* | ||
cpe:2.3:o:canonical:ubuntu_linux:13.04:*:*:*:*:*:*:* | ||
cpe:2.3:o:canonical:ubuntu_linux:13.10:*:*:*:*:*:*:* |
REMEDIATION
Patch
Url |
---|
http://www.cups.org/str.php?L4319 |
EXPLOITS
Exploit-db.com
id | description | date | |
---|---|---|---|
No known exploits |
Other (github, ...)
Url |
---|
http://www.cups.org/str.php?L4319 |
CAPEC
Common Attack Pattern Enumerations and Classifications
id | description | severity |
---|---|---|
132 | Symlink Attack |
High |
17 | Using Malicious Files |
Very High |
35 | Leverage Executable Code in Non-Executable Files |
Very High |
76 | Manipulating Web Input to File System Calls |
Very High |
MITRE
Techniques
id | description |
---|---|
T1027.006 | Obfuscated Files or Information: HTML Smuggling |
T1027.009 | Obfuscated Files or Information: Embedded Payloads |
T1547.009 | Boot or Logon Autostart Execution:Shortcut Modification |
T1564.009 | Hide Artifacts: Resource Forking |
T1574.005 | Hijack Execution Flow: Executable Installer File Permissions Weakness |
T1574.010 | Hijack Execution Flow: ServicesFile Permissions Weakness |
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. |
Mitigations
id | description |
---|---|
T1027.009 | On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated scripts. |
T1547.009 | Limit permissions for who can create symbolic links in Windows to appropriate groups such as Administrators and necessary groups for virtualization. This can be done through GPO: Computer Configuration > [Policies] > Windows Settings > Security Settings > Local Policies > User Rights Assignment: Create symbolic links. |
T1564.009 | Configure applications to use the application bundle structure which leverages the <code>/Resources</code> folder location. |
T1574.005 | Limit privileges of user accounts and groups so that only authorized administrators can interact with service changes and service binary target path locations. Deny execution from user directories such as file download directories and temp directories where able. |
T1574.010 | Limit privileges of user accounts and groups so that only authorized administrators can interact with service changes and service binary target path locations. Deny execution from user directories such as file download directories and temp directories where able. |
© 2022 The MITRE Corporation. Esta obra se reproduce y distribuye con el permiso de The MITRE Corporation. |
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.
