Univention Bugzilla – Bug 40365
sudo: multiple issues (4.0)
Last modified: 2016-03-08 17:32:07 CET
+++ This bug was initially created as a clone of Bug #40364 +++ CVE-2015-5602: sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Upstream Debian package version 1.8.5p2-1+nmu3+deb7u1 fixes this issue.
The patches have been extracted from the Debian package update and the package has been rebuilt with them in errata4.0-4. Advisory: sudo.yaml
OK: advisory OK: manual test of exploit: root@dc2000:~# DEBIAN_FRONTEND=noninteractive apt-get install sudo root@dc2000:~# dpkg -l sudo ii sudo 1.8.5p2-1+nmu2.39. amd64 root@dc2000:~# echo 'schueler1 ALL=(root) NOPASSWD: sudoedit /home/*/*/test.txt' >> /etc/sudoers schueler1@dc2000:~$ sudoedit /home/schueler1/testdir/test.txt sudoedit: /home/schueler1/testdir/test.txt unchanged schueler1@dc2000:~$ logout root@dc2000:~# apt-get update root@dc2000:~# dpkg -l sudo ii sudo 1.8.5p2-1+nmu2.41. amd64 root@dc2000:~# su - schueler1 schueler1@dc2000:~$ sudoedit /home/schueler1/testdir/test.txt sudoedit: /home/schueler1/testdir/test.txt: editing files in a writable directory is not permitted
<http://errata.software-univention.de/ucs/4.0/406.html>