Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Untrusted code execution Date: Tue, 5 Apr 2016 08:50:16 -0600 Lines: 27 Message-ID: References: <58de161a-ecdb-4ada-aab5-871876ea1574@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 5FOHI4Pnq1CxAPo/YTWbPACmd4eT8s3FuANRmwyv6S9g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:code': 0.07; 'api': 0.09; 'ast': 0.09; 'namespace': 0.09; 'str,': 0.09; 'python': 0.10; '2016': 0.16; 'all?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'else,': 0.18; 'thoughts': 0.18; 'tree': 0.18; 'issue.': 0.20; '"",': 0.22; 'int,': 0.22; 'am,': 0.23; 'code.': 0.23; 'header:In-Reply-To:1': 0.24; 'figure': 0.27; 'message-id:@mail.gmail.com': 0.27; 'said,': 0.27; 'idea': 0.28; 'values': 0.28; 'looks': 0.29; 'clever': 0.29; 'node': 0.29; 'raise': 0.29; "i'm": 0.30; 'work.': 0.30; 'code': 0.30; "i'd": 0.31; 'plans': 0.32; 'tue,': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'execution': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'skip:{ 10': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'front': 0.38; 'received:209': 0.38; 'anything': 0.38; 'skip:p 20': 0.38; 'enough': 0.39; 'to:addr:python.org': 0.40; 'more': 0.63; 'dont': 0.64; 'apart': 0.70; '3.4': 0.84; 'experiment': 0.84; 'to:name:python': 0.84; 'utc+5:30,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5CWV3jUQa1UxrzZAMMCbr9ZzGrST5atja4/ggyyA/t8=; b=Qnx0sjTACvZNWVcHeNBYOJi+RgQLTtUSXbDB86WxNJFZGSN9GIoqMggE6iHjbYXMdo 8GIABwWjlIHoT/Me6pNmtakOcyH7BbQTzfLHURecp5xGlvWG41QdrQWa4gISJTqtynHX u4v+qXFRm8lNm5msMRBMxcGgx6jBS1NobheBri9CW00Vjn4FP/UXuADDaaoV83j5LfC2 I+o0D9VDSAYagNpx6tz/qGifX4qfzDahyI8aQChjzCkwEOK/l6Q/jBtybU1ljwA9TH9s iMgvn2Zt3kbSl+LKjc/WTPKGoHAJvyiPhJBsq+8LbwyinyzLB3Sxf/VLlLMLbHxNH23q 7ikw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5CWV3jUQa1UxrzZAMMCbr9ZzGrST5atja4/ggyyA/t8=; b=kbXTOzKjHZICKuN8/6hObZuvZYW7sdcNgLK/8jCWnxAwTczKAY0fgVg6zkDAcFw5YF P0K/9ecxRnhhvgNmDOXE3InST5qmtbXOSAzWiR9HCqvhUADyj76DRYyDPY6yogsnRF0q ezn9Vuz3s+g5vQLcz0D+0xEtsFKiQGb/n8ZXgpklUtJb81PJq2Em8D/8vTq8J5fXi2E2 F3SBgZTuxQgTby9Xv9RW+uWNebJ/WK97i/A+L+bGQ5FOBAn/htz3b/Hr9Q47Gk89vyAP b4EwYDKdVTRYddGza0EKq95D5mjAv1gGIS89qEX+OnjdMMLG0cS8+IkTz2Aweuwfny3I +tIA== X-Gm-Message-State: AD7BkJL4JU+T143p5NQDGkVeCN1I3A+ymtKRNDwASZUHlJ9bTq39fAtNtDzwlNaBmbI/utRbycvWT/pMEoPdbg== X-Received: by 10.50.112.10 with SMTP id im10mr17374096igb.93.1459867855959; Tue, 05 Apr 2016 07:50:55 -0700 (PDT) In-Reply-To: <58de161a-ecdb-4ada-aab5-871876ea1574@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <58de161a-ecdb-4ada-aab5-871876ea1574@googlegroups.com> Xref: csiph.com comp.lang.python:106522 On Tue, Apr 5, 2016 at 8:17 AM, Rustom Mody wrote: > On Tuesday, April 5, 2016 at 7:19:39 PM UTC+5:30, Jon Ribbens wrote: >> On 2016-04-03, Jon Ribbens wrote: >> > I'd just like to say up front that this is more of a thought experiment >> > than anything else, I don't have any plans to use this idea on any >> > genuinely untrusted code. Apart from anything else, there's the >> > denial-of-service issue. >> > >> > That said, is there any way that the following Python 3.4 code could >> > result in a arbitrary code execution security hole? >> > >> > tree = compile(untrusted_code, "