View previous topic :: View next topic |
Author |
Message |
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
Posted: Mon Sep 27, 2004 9:11 pm Post subject: [SOLVED] I think I have found a security bug |
|
|
Here is the deal, I have a user called backup. Backup is a normal user, except he has a SUID tar file used to backup the system. I discovered that anyone can remove the file owned by root if it was created with SUID tar. Is this a known problem (other than the fact that I am using SUID), or should I file a bug?
Code: | $ pwd
/home/backup
$ whoami
backup
$ groups backup
users
$ ls -l
total 196
-rwsr-sr-x 1 root root 166320 Sep 27 15:54 tar
-rw-r--r-- 1 root root 28022 Sep 27 15:58 test.tar
$ rm test.tar
rm: remove write-protected regular file `test.tar'? y
$ ls -l
total 168
-rwsr-sr-x 1 root root 166320 Sep 27 15:54 tar
|
_________________ While your waiting for your post to be answered, please help with unanswered posts.
Last edited by biznatch on Fri Oct 01, 2004 2:24 am; edited 1 time in total |
|
Back to top |
|
|
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
|
Back to top |
|
|
swegener Developer
Joined: 19 Jun 2004 Posts: 8 Location: Karlsruhe, Germany
|
Posted: Mon Sep 27, 2004 10:39 pm Post subject: |
|
|
See my comment I posted to the bug. |
|
Back to top |
|
|
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
Posted: Thu Sep 30, 2004 8:20 pm Post subject: |
|
|
I was not aware of that. I feel dumb now. _________________ While your waiting for your post to be answered, please help with unanswered posts. |
|
Back to top |
|
|
|