LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


View Poll Results: Am I being paranoid?
Yes, you're being paranoid 2 100.00%
You can't be paranoid enough 0 0%
Voters: 2. You may not vote on this poll

Reply
  Search this Thread
Old 03-01-2006, 07:53 AM   #1
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Package install from online repository, security and paranoia


I installed the k3b mad package yesterday from one of the Packman mirrors (packman.iu-bremen.de) to allow burning of audio CDs from mp3 (which also updated a number of other packages to resolve dependencies). Following this, a configuration warning opened up when I restarted k3b telling me that I could experience problems with burning CDs as k3b was not configured to run with root priveliges. I took the option to update k3b's configuration, entering the root password.

I have been worrying since about the possibility of an exploit being installed in this way. On the one hand:
  • The installation was done through YaST, which requires the root password to run anyway, so it seems that any exploit would not require this to be entered a second time.
  • Packman's repositories are generally a trusted source.
  • I have had CD burning failures in the past, which seemed to be due to k3b not running with root priveliges.
However:
  • I could run k3b as root when necessary, by launching it from the command line with sudo / su root.

What do you all think?

Rob

Last edited by Robhogg; 03-01-2006 at 07:56 AM.
 
Old 03-01-2006, 09:42 AM   #2
Widgeteye
Member
 
Registered: Mar 2005
Posts: 130

Rep: Reputation: 17
Quote:
Originally Posted by Robhogg
I installed the k3b mad package yesterday from one of the Packman mirrors (packman.iu-bremen.de) to allow burning of audio CDs from mp3 (which also updated a number of other packages to resolve dependencies). Following this, a configuration warning opened up when I restarted k3b telling me that I could experience problems with burning CDs as k3b was not configured to run with root priveliges. I took the option to update k3b's configuration, entering the root password.

I have been worrying since about the possibility of an exploit being installed in this way. On the one hand:
  • The installation was done through YaST, which requires the root password to run anyway, so it seems that any exploit would not require this to be entered a second time.
  • Packman's repositories are generally a trusted source.
  • I have had CD burning failures in the past, which seemed to be due to k3b not running with root priveliges.
However:
  • I could run k3b as root when necessary, by launching it from the command line with sudo / su root.

What do you all think?

Rob

I run all that stuff as normal user. You need to make sure your
dvd is writable by users: chmod 666 /dev/dvd or whatever you have as your dvd burner. Then make cdrecord and all the other cd/dvd recording programs owned by root but runnable by users;
chmod 4755 cdrecord.

You shoudln't have to do your cd/dvd burning as root, ever. All you may have to do is make sure your burner is world writable as above. The rest may not even be necessary.
 
Old 03-02-2006, 05:20 AM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Original Poster
Rep: Reputation: 97
Hmm...

After doing the configuration as I described, ls -l `which k3b` gives:

-rwxr-xr-x 1 root root 2209828 2006-02-28 10:42 /opt/kde3/bin/k3b

and ls -l `which cdrecord` gives:

-rwxr-xr-x 1 root root 336668 2005-09-09 17:40 /usr/bin/cdrecord

I had actually expected that the permissions would have been set to the equivalent of 4755 - i.e. with setuid root (-rwsr-xr-x). Any idea what else it could have done?

Thanks,
Rob

Last edited by Robhogg; 03-02-2006 at 05:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Info: Difference Between SUSE10.0 Retail and Online Repository abisko00 SUSE / openSUSE 0 12-15-2005 03:13 PM
Creating a package repository Thakowbbery SUSE / openSUSE 0 10-13-2005 08:40 AM
MYSQL paranoia security prohibits PHP to use database ? Dark Carnival Debian 1 01-08-2005 10:33 AM
how do you set up rpmdrake to use an online repository to install rpms? samatman Mandriva 5 06-12-2004 09:19 AM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration