bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[severe] access outside simlinked directory


From: AT-HE
Subject: [severe] access outside simlinked directory
Date: Wed, 26 Nov 2008 01:36:58 -0500

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux ogro 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        if you have a simlink pointing to a directory, chdir to that symlink 
dir, and type something with '..',
        you access the parent of real directory, not previous simlinked one.

        it is not supposed to be like, may be dangerous in a shared environment.
        
        i tested only (but not limited) with cd, cat, vi, chmod and chown; all 
returning described results.

Repeat-By:
        :/my/dir1/# ls -F /other/
         dir2/
         otherfile

        :/my/dir1/# ln -s /other/dir2/
        :/my/dir1/# ls -F
         dir2@ -> /other/dir2/
         myfile

        :/my/dir1/# cd dir2
        :/my/dir1/dir2/# ls -F ..
         dir2/
         otherfile

Notes: this was copypasted and sended trought hotmail since bashbug didn't 
connect.
          i am not a developer, so if this is a dumb report and there is a 
reason why, please ignore it xD

AT-HE


_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008

reply via email to

[Prev in Thread] Current Thread [Next in Thread]