Orange Business Services
Vigil@nce Vigil@nce Vigil@nce
we track for your security since 1999
 home presentation resources documentation contact  
subscriber area subscriber area
free access free access
Vigil@nce describes vulnerabilities impacting your systems, and offers solutions to correct them.
recent vulnerabilities recent vulnerabilities
tracked products tracked products
RSS feed RSS feed
vulnerability
vulnerability CVE-2010-0787
Samba: privilege elevation via mount.cifs

Synthesis of the vulnerability
When the mount.cifs tool is installed suid root, a local attacker can use a symbolic link, in order to elevate his privileges or to obtain information.
Severity: 2/4.
Consequences: administrator access/rights, privileged access/rights, user access/rights, data reading.
Provenance: user shell.
Means of attack: 1 attack.
Ability of attacker: technician (2/4).
Confidence: confirmed by the editor (5/5).
Diffusion of the vulnerable configuration: high (3/3).
Creation date: 29/01/2010.

Impacted products

Description of the vulnerability
The mount.cifs utility of the Samba suite is used to mount a remote CIFS/SMB share in a local directory. This tool is frequently installed suid root.

However, this tool does not atomically check the mount directory. A local attacker can therefore:
 - call mount.cifs to mount a remote share on /home/user/mydir
 - during its execution, replace /home/user/mydir by a symbolic link to /privatedirectory
 - wait for mount.cifs to mount the share on /privatedirectory
So, by modifying/reading the content of the share on the remote server, the local attacker can modify/read to content of /privatedirectory.

When the mount.cifs tool is installed suid root, a local attacker can therefore use a symbolic link, in order to elevate his privileges or to obtain information.

Characteristics
Title: Samba: privilege elevation via mount.cifs
Identifiers: 532940, 6853, BID-37992, CVE-2010-0787, DSA 2004-1, FEDORA-2010-1190, FEDORA-2010-1218, REJ-2009-3297, SUSE-SR:2010:004, VIGILANCE-VUL-9390.
Url: https://vigilance.fr/tree/1/9390

Information sources
Publications and announces
Source example: CVE-2009-3297 samba, fuse, ncpfs: Race condition by mount (mount.cifs, ncpmount) / umount (fusermount, ncpumount) operations

Solutions for this vulnerability
Patch or workaround

Supplements

Attack
Exploit 0day or proof of concept



















France Télécom Copyright 1999-2010 Vigil@nce. Vigil@nce is a service from Orange Business Services. Site map. Legal notice. Version française