BugTraq
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 09:12PM
Dan Yefimov (dan lightwave net ru) (4 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 25 2009 09:46AM
Klaus Lichtenwalder (k lichtenwalder computer org)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 24 2009 06:47AM
Anton Ivanov (arivanov sigsegv cx) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 24 2009 04:19PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissionsonLinux Oct 24 2009 04:59PM
Anton Ivanov (arivanov sigsegv cx) (1 replies)
Re: /proc filesystem allows bypassing directory permissionsonLinux Oct 24 2009 05:39PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directorypermissionsonLinux Oct 24 2009 06:05PM
Anton Ivanov (anton ivanov kot-begemot co uk) (1 replies)
Re: /proc filesystem allows bypassing directorypermissionsonLinux Oct 24 2009 06:36PM
Dan Yefimov (dan lightwave net ru) (2 replies)
Re: /proc filesystem allows bypassing directorypermissionsonLinux Oct 27 2009 08:59PM
Ivan Jager aij+ (at) mrph (dot) org [email concealed] (aij+ mrph org)
Re: /proc filesystem allows bypassingdirectorypermissionsonLinux Oct 24 2009 07:27PM
Anton Ivanov (anton ivanov kot-begemot co uk) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 29 2009 11:00AM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 10:05PM
Pavel Machek (pavel ucw cz) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 03:30PM
Casper Dik sun com (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 04:16PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 09:58PM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 06:50AM
Marco Verschuur (marco osp nl) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 12:56PM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 08:19PM
Marco Verschuur (marco osp nl) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 28 2009 09:38PM
Pavel Machek (pavel ucw cz) (1 replies)
On Tue 2009-10-27 21:19:19, Marco Verschuur wrote:
> My buy.. :-( I persumed a re-use of the read-only FD, but that's not
> the case.
>
> I replayed it on a test-box and did some strace meanwhile and also
> took a look
> at the sourcecode of kernel/fs/proc.
>
> It seems that the /proc filedescriptor is directly referring the
> file inode
> When creating this proc-entry the user guest did have access to the
> file and the path via tmp,
> therefore a successfull filedescriptor straight to the file inode is
> being created, while checking
> th entire path towards the file.
>
> Although closing the path to the file, the actual file is made world
> writable due to the file permissions being 666.
> When guest does the "echo got you > /proc/self/fd/3" the /proc
> filedescriptor (which directly refers the file inode)
> is opened in O_WRONLY. So user guest is able to write the file.

> IMHO; no bug or security issue, just a misunderstanding of the
> mechanism...

Well, existing unix mechanisms would not allow writing to that
file. So yes, it works as authors intended, but I believe it is
misdesigned and security problem.

The /proc/self/fd/X appears to be a symlink, but it is not; it
operates on underlying objects directly. And IMNSHO it should honor
restrictions opened filedescriptors have, like append-only or
read-only.

(Or alternatively, it could be fixed to behave like real symlinks. But
that would break /proc/*/fd/ on deleted files).
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[ reply ]
Re: /proc filesystem allows bypassing directory permissions on Oct 29 2009 04:32PM
Martin Rex (Martin Rex sap com) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Oct 29 2009 08:36PM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 10:21PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 10:39PM
Pavel Machek (pavel ucw cz) (3 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 09:49PM
Glynn Clements (glynn gclements plus com)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 04:05PM
Tamber Penketh (james penketh googlemail com) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 27 2009 12:55AM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 10:55PM
Dan Yefimov (dan lightwave net ru)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 09:22PM
Arturo 'Buanzo' Busleiman (buanzo buanzo com ar)


 

Privacy Statement
Copyright 2010, SecurityFocus