Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '"this': 0.03; 'parameters': 0.04; 'pgp': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; '"test"': 0.16; '(without': 0.16; '----- begin': 0.16; '-----end': 0.16; 'commented': 0.16; 'gnupg': 0.16; 'hash:': 0.16; 'sha1': 0.16; 'skip:1 60': 0.16; 'skip:j 60': 0.16; 'subject:send': 0.16; 'url:enigmail': 0.16; 'subject:python': 0.16; 'comment:': 0.16; 'trying': 0.19; 'message-----': 0.19; 'header:User-Agent:1': 0.23; '---': 0.24; 'script': 0.25; 'signed': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'skip:i 60': 0.31; 'skip:r 60': 0.31; 'subject:the': 0.34; 'test': 0.35; "he's": 0.36; 'version:': 0.36; "didn't": 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'nobody': 0.68; 'subject': 0.69; 'user,': 0.69; 'amazed': 0.84; 'mailer': 0.84; 'subject:via': 0.84 Date: Mon, 16 Sep 2013 13:32:35 +0200 From: Heiko Wundram User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Tryign to send mail via a python script by using the local MTA References: <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> <52366466$0$29988$c3e8da3$5496439d@news.astraweb.com> <5236B356.7030308@rece.vub.ac.be> <5236BD75.5080904@rece.vub.ac.be> <5236C4B7.3070601@rece.vub.ac.be> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379331724 news.xs4all.nl 15990 [2001:888:2000:d::a6]:37290 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54220 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 16.09.2013 13:21, schrieb Denis McMahon: > If he's trying to prove communication works, he might be better off > using a message subject of "test" and a message body of "this is a > test message". Generally, he might be best off if he didn't use os.system() with string-interpolated (without escaping or any such) and user-specified (!) parameters to send out the mail using mailx though a sub-shell. This begs of using his mailer script for code injection as his web-server user, and I'm amazed that nobody has commented on that so far. - -- - --- Heiko. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSNuxTAAoJEDMqpHf921/Sd8IH/2BcapK/dNqbs/PDz3LZLiUS JYYmNaWSjui7KYJsA/A8R3XVaM0eyHkYI8dr8Jx6hPdPJyeE27MCKddF3GlYs17Z iO1AydR2J8kYjXgVLrCWtfH3taB6ryUko6sOe1j/u0hYbQOATxuBPvxTVK4Wmi85 1m8unw9NvlTelAREg6WLudqpE9i115dns87+FTNcgNd3ieppJw+Cv2Mp6z3Yn3he y0W9yMqH1LV4oW/6arZVVIcaWDHCb1I0L++aC8JLnOHYz1osf+34BbHHBcY6Qkty reon+sWKwrlJ56o8Zi1Lx97ymxXxuvUtJS/5WGpRh/XLWYVBGCX3XA42DKqscQk= =xENG -----END PGP SIGNATURE-----