Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Dan Kaminsky (dandoxpara.com)
Date: Fri Feb 05 2010 - 16:26:46 CST
The bug here is that out-of-path symlinks are remotely writable. If a
pre-existing symlink is there, it's not a problem. But Kingcope's bug is
legit, the fact that he can *generate* the symlink breaks the entire path
concept of SMB shares. As long as "cd .." wasn't working, "symlink .."
I agree that a user with local access should be able to generate out of path
symlinks -- there's no path constraint concept in local access (well, not
without a restricted shell, but thats its own ball of wax). But Samba
supports dropping a user into a path, and it really does need to keep him
(On a side note, you're not going to see this sort of symlink stuff on
Windows, and Samba is supposed to match Windows semantics in general. Also,
this sort of directory traversal pops up from year to year, in web platforms
particularly, but also things like tar.)
On Fri, Feb 5, 2010 at 5:03 PM, <paul.szabosydney.edu.au> wrote:
> Dear Kingcope,
> The samba server follows symlinks by default. There are options
> ("follow symlinks", "wide links") for turning it off:
> The "problem" at your installation seems a mis-configuration of
> your server: please ask the admin to set "secure" options.
> (Some samba installations, like mine, wish to allow same access as a
> UNIX login would allow. Some shares like [home] are provided for ease
> of use, users are encouraged to create symlinks to other "interesting"
> places e.g. NFS-mounted directories.)
> Cheers, Paul
> Paul Szabo pszmaths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/
> School of Mathematics and Statistics University of Sydney Australia
> Full-Disclosure - We believe in it.
> Charter: http://lists.grok.org.uk/full-disclosure-charter.html
> Hosted and sponsored by Secunia - http://secunia.com/
Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia - http://secunia.com/