fun with pkg_add
From: The Anarcat (anarcat@anarcat.dyndns.org)
Date: 11/21/01
- Next message: Stephen T. Shipley: "Re: Best security topology for FreeBSD"
- Previous message: Krzysztof Zaraska: "Re: Best security topology for FreeBSD"
- Next in thread: Eric Anderson: "Re: fun with pkg_add"
- Reply: Eric Anderson: "Re: fun with pkg_add"
- Reply: airot@lazir.toya.net.pl: "Re: fun with pkg_add"
- Reply: Bart Matthaei: "Re: fun with pkg_add"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 21 Nov 2001 14:18:08 -0500 From: The Anarcat <anarcat@anarcat.dyndns.org> To: FreeBSD Security Issues <FreeBSD-security@FreeBSD.ORG>
Hi!
I just noticed something that could be a problem with pkg_add
algorithms. When it installs a package, it first untars it in a
temporary directory. The problem is that the subdirectories of the
package created this way are world-writable:
$ ftp -a ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All/auctex-10.0g.tgz
$ pkg_add auctex-10.0g.tgz
^Z
$ ls -l /var/tmp/inst*
total 23
-rw-r--r-- 1 root wheel 57 12 nov 02:07 +COMMENT
-rw-r--r-- 1 root wheel 11223 12 nov 02:07 +CONTENTS
-rw-r--r-- 1 root wheel 1224 12 nov 02:07 +DESC
-rw-r--r-- 1 root wheel 815 12 nov 02:07 +DISPLAY
-r--r--r-- 1 root wheel 5181 12 nov 02:07 +MTREE_DIRS
drwxrwxrwx 2 root wheel 512 21 nov 14:15 info/
drwxrwxrwx 4 root wheel 512 21 nov 14:15 share/
Lovely. I don't exactly know why it happens this way.
I think this could be a security problem if a random user happens to run
around /var/tmp while the admin is adding a package.
Am I wrong?
A.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
- application/pgp-signature attachment: stored
- Next message: Stephen T. Shipley: "Re: Best security topology for FreeBSD"
- Previous message: Krzysztof Zaraska: "Re: Best security topology for FreeBSD"
- Next in thread: Eric Anderson: "Re: fun with pkg_add"
- Reply: Eric Anderson: "Re: fun with pkg_add"
- Reply: airot@lazir.toya.net.pl: "Re: fun with pkg_add"
- Reply: Bart Matthaei: "Re: fun with pkg_add"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|