vendor:
mount.cifs
by:
Jesus Olmos Gonzalez
N/A
CVSS
N/A
linux privileged and arbitrary chdir()
N/A
CWE
Product Name: mount.cifs
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2012
Blueliv Advisory 2012-004
mount.cifs (GNU Software) is part of linux base system, and is setuided on most of the distributions (archlinux, debian, ubuntu, ...). This software mounts cifs partition to directories authorized by fstab. Althow there is not authorized cifs mounts, is possible by the second parameter to control a privileged chdir() syscall and infer the return value throught the responses. This implies, a little security breach on linux permissions. A non root user can enumerate files and directories as root. This can help to exploit another vulnerabilities, enumerate /root/ contents, descriptors used by any process, user homes, etc.
Mitigation:
The best way to mitigate this vulnerability is to restrict the access to mount.cifs binary to root user only.