Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66296 - net-dialup/rp-pppoe: local vulnerability (DSA 557-1)
Summary: net-dialup/rp-pppoe: local vulnerability (DSA 557-1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Security
URL: http://www.debian.org/security/2004/d...
Whiteboard: B? [] koon
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 04:04 UTC by Marc Vila
Modified: 2011-10-30 22:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rp-pppoe-3.5-r2.patch (rp-pppoe-3.5-r2.patch,437 bytes, patch)
2004-10-05 09:24 UTC, Alin Năstac (RETIRED)
no flags Details | Diff
files/rp-pppoe-3.5-dsa-557.patch (rp-pppoe-3.5-dsa-557.patch,5.45 KB, patch)
2004-10-05 09:25 UTC, Alin Năstac (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Vila 2004-10-04 04:04:19 UTC
Max Vozeler discovered a vulnerability in pppoe, the PPP over Ethernet
driver from Roaring Penguin. When the program is running setuid root,an attacker
could overwrite any file on the file system.

CVE ID: CAN-2004-0564

Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2004-10-04 05:41:41 UTC
net-dialup, please comment...

I suppose we're vulnerable to this, since upstream wasn't patched. With which owner/group/suid/sgid do we install pppoe ? I suppose we should do like Debian did and patch it.
Comment 2 solar (RETIRED) gentoo-dev 2004-10-04 12:27:20 UTC
adding comment to above url. Ifind it a lot easier when we can click on a given url. http://www.debian.org/security/2004/dsa-557
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2004-10-05 09:24:42 UTC
Created attachment 41151 [details, diff]
rp-pppoe-3.5-r2.patch

Created r2 ebuild which includes the significant part of Debian patch.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2004-10-05 09:25:42 UTC
Created attachment 41152 [details, diff]
files/rp-pppoe-3.5-dsa-557.patch

Significant part of Debian patch for DSA 557
Comment 5 Thierry Carrez (RETIRED) gentoo-dev 2004-10-05 11:36:59 UTC
Alin, 
Please tell me with which owner/group/suid/sgid do we install rp-pppoe ?

What are the packages affected by this ? both rp-pppoe and pppoe ? Or just rp-pppoe ?
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2004-10-05 14:22:32 UTC
alin root # ls -l /usr/sbin/pppoe*
-rwxr-xr-x  1 root root 30108 Oct  6 00:06 /usr/sbin/pppoe
-rwxr-xr-x  1 root root 26964 Oct  6 00:06 /usr/sbin/pppoe-relay
-rwxr-xr-x  1 root root 40704 Oct  6 00:06 /usr/sbin/pppoe-server
-rwxr-xr-x  1 root root 14044 Oct  6 00:06 /usr/sbin/pppoe-sniff
-rwsr-xr-x  1 root root  6736 Oct  6 00:06 /usr/sbin/pppoe-wrapper
alin root # ls -l /usr/sbin/adsl-*
-rwxr-xr-x  1 root root 9239 Oct  6 00:06 /usr/sbin/adsl-connect
-rwxr-xr-x  1 root root 9549 Oct  6 00:06 /usr/sbin/adsl-setup
-rwxr-xr-x  1 root root 5862 Oct  6 00:06 /usr/sbin/adsl-start
-rwxr-xr-x  1 root root 2457 Oct  6 00:06 /usr/sbin/adsl-status
-rwxr-xr-x  1 root root 2407 Oct  6 00:06 /usr/sbin/adsl-stop

However, I don't see any reason why would proceed any different than cases before this. If it is a setuid/seteuid problem (like the cdrecord problem not so long ago), we should act as if we install these programs as suid-ed to root. It does not count that we install the cdrecord without suid attribute; we should consider the case when user set this attribute on its own.
Comment 7 Thierry Carrez (RETIRED) gentoo-dev 2004-10-06 00:54:11 UTC
cdrecord was a controversy amongst the security team. The only reason why we issued a GLSA about it is that it's very common practice to change it to SUID root (front-end programs do it routinely and even cdrecord itself asks for it with intimidating warning messages).

If there is no point in having it SUID or if the rp-pppoe docs don't ask that the user do it, we won't issue a GLSA. If the rp-pppoe docs (or ebuild) explicitely ask the user to set in SUID root for extra functionality, then we will. I'm not a rp-pppoe user, so please enlighten me.

We just can't issue GLSAs for vulnerabilities where the only way to be vulnerable is to manually change a program to SUID root where there is no point in doing so. Users can walk over themselves in a thousand other easier ways.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2004-10-06 00:58:37 UTC
/usr/sbin/pppoe-wrapper is the only suided file.
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2004-10-06 01:07:54 UTC
OK, I've made a mistake. /usr/sbin/pppoe-wrapper does not belong to rp-pppoe. 
There is no suided/sgided executables installed by rp-pppoe-3.5-r1.ebuild
Comment 10 Thierry Carrez (RETIRED) gentoo-dev 2004-10-06 08:43:47 UTC
Since rp-pppoe is not installed SUID root and there is no compelling reason to set it on Gentoo (use the rp-pppoe daemon, Luke), we won't issue a GLSA on this. This should nevertheless be fixed.
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-07 07:57:31 UTC
added -r2 to portage
Comment 12 Thierry Carrez (RETIRED) gentoo-dev 2004-10-07 08:56:01 UTC
Thx Alin and Heinrich :)
Arches, please mark net-dialup/rp-pppoe-3.5-r2 stable
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-07 11:50:49 UTC
stable amd64
Comment 14 Bryan Østergaard (RETIRED) gentoo-dev 2004-10-07 16:17:51 UTC
Stable on alpha.
Comment 15 SpanKY gentoo-dev 2004-10-07 17:50:03 UTC
arm/hppa stable
Comment 16 Gustavo Zacarias (RETIRED) gentoo-dev 2004-10-08 12:04:28 UTC
sparc stable.
Comment 17 Jochen Maes (RETIRED) gentoo-dev 2004-10-08 12:21:56 UTC
ppc stable
Comment 18 Thierry Carrez (RETIRED) gentoo-dev 2004-10-08 13:46:16 UTC
Closed without GLSA
Comment 19 Hardave Riar (RETIRED) gentoo-dev 2004-10-16 22:34:47 UTC
Stable on mips.