Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:134': 0.05; 'bash': 0.07; 'exec': 0.07; 'scripts': 0.09; 'python': 0.09; '-rf': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'script,': 0.09; 'subject:module': 0.09; 'exactly?': 0.16; 'message- id:@post.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'setuid': 0.16; 'subject:accessing': 0.16; 'subject:created': 0.16; 'shell': 0.18; 'script': 0.24; 'header:User-Agent:1': 0.26; 'creating': 0.26; 'header:X-Complaints-To:1': 0.28; 'concern.': 0.29; 'mind,': 0.29; 'things,': 0.29; 'writes:': 0.29; 'running': 0.32; 'to:addr :python-list': 0.33; 'received:org': 0.36; 'michael': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'close': 0.63; 'different': 0.63; 'more': 0.63; 'dangerous': 0.66; 'reasoning': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Kene Meniru Subject: Re: Running external module and accessing the created objects Date: Tue, 12 Mar 2013 13:38:59 +0000 (UTC) References: <513aecd3$0$6512$c3e8da3$5496439d@news.astraweb.com> <513E7B6B.5070608@davea.name> <513EA973.7000705@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 134.192.3.12 (Mozilla/5.0 (X11; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0 Iceweasel/19.0.2) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363095555 news.xs4all.nl 6957 [2001:888:2000:d::a6]:57849 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41121 Michael Torrie gmail.com> writes: > It's not possible to setuid a python script, so I don't see how execfile > or exec is any more dangerous than the user creating a shell script that > rm -rf * things, and then running it. > > Bash "exec's" scripts all the time that users create and provide. How > is this different and what issues did you have in mind, exactly? > This is close to my reasoning too, although I appreciate Dave's concern.