Bluehost.com Web Hosting $6.95

Security problem is rp-pppoe

This is a discussion on Security problem is rp-pppoe within the Linux Networking forums, part of the Linux Forums category; Hi, My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE. I use rp-pppoe and it works ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2003
Michael Badt
 
Posts: n/a
Default Security problem is rp-pppoe

Hi,
My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE.
I use rp-pppoe and it works fine for me but I can't see why I have to
run its commands as root.
Specifically, why do I have to enter the root password
WHILE CONNECTED to the Internet in order to shut down my
connection ("adsl-stop"). I consider it as a serious
security problem and wish I could avoid it.

Please advise.
Thanks in adavance.
Reply With Quote
  #2 (permalink)  
Old 09-28-2003
Eric Gibson
 
Posts: n/a
Default Re: Security problem is rp-pppoe


"Michael Badt" <mibadt@actcom.net.il> wrote in message
news:pan.2003.09.28.03.39.22.577522@actcom.net.il. ..
> Hi,
> My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE.
> I use rp-pppoe and it works fine for me but I can't see why I have to
> run its commands as root.
> Specifically, why do I have to enter the root password
> WHILE CONNECTED to the Internet in order to shut down my
> connection ("adsl-stop"). I consider it as a serious
> security problem and wish I could avoid it.


I've never looked at this code, but I think this probably because it would be
difficult to implement code for this to work as a non-root user. As I'm sure it has
many kernel hooks.

You could set up sudo for this command, if you just really don't want to run as
root. Which is good practice, but most people don't even consider it. You may be
able to setuid the commands as well.

Eric

>
> Please advise.
> Thanks in adavance.



Reply With Quote
  #3 (permalink)  
Old 09-28-2003
James Knott
 
Posts: n/a
Default Re: Security problem is rp-pppoe

Michael Badt wrote:

> Hi,
> My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE.
> I use rp-pppoe and it works fine for me but I can't see why I have to
> run its commands as root.
> Specifically, why do I have to enter the root password
> WHILE CONNECTED to the Internet in order to shut down my
> connection ("adsl-stop"). I consider it as a serious
> security problem and wish I could avoid it.


While I don't know about ADSL, you can certainly configure the ethernet
interface, so that it can be shut down by a user. The same applies to any
other interface I've used, including wireless and a VPN. Look in
/etc/sysconfig/network-scripts for the device ifcfg file. If there's a
line "USERCTL=yes", then a user can control the interface.


--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
Reply With Quote
  #4 (permalink)  
Old 09-28-2003
Clifford Kite
 
Posts: n/a
Default Re: Security problem is rp-pppoe

Michael Badt <mibadt@actcom.net.il> wrote:

> My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE.
> I use rp-pppoe and it works fine for me but I can't see why I have to
> run its commands as root.


If pppd is suid root then you shouldn't need to be root, provided
the execute permissions for it and the commands (scripts?) allow
regular users to run them. Some people think that setting pppd
suid root is not a good idea, but I see nothing wrong with it in
a trusted environment.

> Specifically, why do I have to enter the root password
> WHILE CONNECTED to the Internet in order to shut down my
> connection ("adsl-stop"). I consider it as a serious
> security problem and wish I could avoid it.


Perhaps the creator of adsl-stop didn't want just anyone to be able
to break the connection, which could be serving more than one user.
If it's a script then you may be able to edit and change it so that
you aren't required to enter the root password.

--
Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Those who can't write, write manuals. */
Reply With Quote
  #5 (permalink)  
Old 09-28-2003
joseph philip
 
Posts: n/a
Default Re: Security problem is rp-pppoe

On Sun, 28 Sep 2003 06:39:22 +0300, Michael Badt wrote:

> Hi,
> My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE.
> I use rp-pppoe and it works fine for me but I can't see why I have to
> run its commands as root.
> Specifically, why do I have to enter the root password
> WHILE CONNECTED to the Internet in order to shut down my
> connection ("adsl-stop"). I consider it as a serious
> security problem and wish I could avoid it.
>
> Please advise.
> Thanks in adavance.


Because only root can bring up or shut down :
1. the pseudo-tty and it's associated program that sends out ethernet
frames.
2. the pppd daemon that must attach to that pseudo-tty.



Why do you consider it a security risk? Have you not secured your system
as yet?









Reply With Quote
  #6 (permalink)  
Old 09-28-2003
Michael Badt
 
Posts: n/a
Default Re: Security problem is rp-pppoe

Thank you all !

I'll definitely try to make good use of your advices.

Michael Badt


On Sun, 28 Sep 2003 10:31:36 -0400, joseph philip wrote:

> On Sun, 28 Sep 2003 06:39:22 +0300, Michael Badt wrote:
>
>> Hi,
>> My Mandrake 9.1 PC has an ADSL Internet connection using PPPoE. I use
>> rp-pppoe and it works fine for me but I can't see why I have to run its
>> commands as root.
>> Specifically, why do I have to enter the root password WHILE CONNECTED
>> to the Internet in order to shut down my connection ("adsl-stop"). I
>> consider it as a serious security problem and wish I could avoid it.
>>
>> Please advise.
>> Thanks in adavance.

>
> Because only root can bring up or shut down : 1. the pseudo-tty and it's
> associated program that sends out ethernet frames.
> 2. the pppd daemon that must attach to that pseudo-tty.
>
>
>
> Why do you consider it a security risk? Have you not secured your system
> as yet?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0