Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7612 invoked from network); 1 Feb 2013 18:08:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2013 18:08:13 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 74.125.82.180 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 74.125.82.180 mail-we0-f180.google.com Received: from [74.125.82.180] ([74.125.82.180:56403] helo=mail-we0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/A7-41663-A840C015 for ; Fri, 01 Feb 2013 13:08:11 -0500 Received: by mail-we0-f180.google.com with SMTP id k14so3154577wer.11 for ; Fri, 01 Feb 2013 10:08:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=IOZbfzt4LrdDchx7DjnMmHzmLFRkiyLUrp1xiAbUGBA=; b=EC/s9KIO2QaMOdZcGsdGPxHX9Kk4z8fqFcjmmkbUXPEEkwjjAsEcUTbmpd0yz9KQPO k2VidKWk5RqkDdKGHLfAjGJjXuh+fX4kqoCWVnVuG7qmVbChwdO0SKvfwiyW4sxPV8ye wfO4mp1aP1rwwBBUkWE1k4p9gHyJtPDrFtOtjGFrrc/pCfhDNKqrc69IyZAhcZB3A6Cb pakBiMIFs8+FPiBrvgJVjmCxyT0k5D0+bRYigtADAGtqokbhovZt8YoRJjy0T0U7iqRI 8jTZNhNat6Vbk04c4XVX8ZdRho9HoPdbohrE4gLeeiz9QJJ3TJ/Bb4izuIj7ktEJfbS5 f5mA== MIME-Version: 1.0 X-Received: by 10.194.58.175 with SMTP id s15mr23454877wjq.31.1359742088454; Fri, 01 Feb 2013 10:08:08 -0800 (PST) Received: by 10.180.84.195 with HTTP; Fri, 1 Feb 2013 10:08:08 -0800 (PST) In-Reply-To: <510C03AE.2070903@sugarcrm.com> References: <50FC9AC5.9070407@sugarcrm.com> <5106D92C.6020709@sugarcrm.com> <510C03AE.2070903@sugarcrm.com> Date: Fri, 1 Feb 2013 13:08:08 -0500 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7ba979242b226004d4ada0b7 X-Gm-Message-State: ALoCoQmuUkTWq793NAx0ihV8SzwT7/TJSFcR12pqIVPEBrZwdluAIqNI2m+sESte/fZgv57Tr6Fh Subject: Re: [PHP-DEV] Re: [VOTE] CURLFile uploading API From: pierrick@webstart.fr (Pierrick Charron) --047d7ba979242b226004d4ada0b7 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the example. Even if it's not frequent I agree that it doesn't cost much to prevent this issue Pierrick On 1 February 2013 13:04, Stas Malyshev wrote: > Hi! > > > I'm not against it but, just being curious, what are those security > > reasons ? > > If you ever accepted serialized data from outside (say, after putting it > in a cookie or just having API that accepts serialization) and then > forwarded the same data array using cURL, the attacker could create > serialized representation of CURLFile that would make cURL send out a > file on your filesystem, which would be a security breach. Basically the > same security problem as with @, only with serialization involved. It is > not frequent case, but possible. > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --047d7ba979242b226004d4ada0b7--