Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83311 invoked from network); 20 Mar 2014 09:27:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2014 09:27:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.172 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.172 mail-lb0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:57069] helo=mail-lb0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/B8-33112-174BA235 for ; Thu, 20 Mar 2014 04:27:14 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so388313lbj.17 for ; Thu, 20 Mar 2014 02:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=pEGU37a5dTq79Na7fyRwfaVWA1tuwo8mOs377pYtekQ=; b=UVhD8G2r/57TIzJ4X4EIlE+MZ/k61y9Qtuxv1oKqAJ2hNAX9mkKzhir1UYr2b5miS1 IHRskhOieCCzp/2XqkTngEmxF5QltbDcVQa0aTUIsukOPjk7BT01ts1XyRJNM9U7PVP7 covTRjpztLkj+/CBSwpgmzszO9dRKyRzhILhCtf0xwRZB/Q2BwTqlt2D9YyAN2mlcoCa opFGLTlrdrsMtNfm/vraF0N37aJjHF0Z7iqOrwdMlFnBf3dDN3t6S3ow32n1/Tddi4Pe bOCEdgDVXj+X2dHk9e9rZA41VdrZ0DqmVp1gVaANrHjrHesmJRg4DA2HgTp6tOTySgXW tTJQ== X-Received: by 10.112.56.148 with SMTP id a20mr975815lbq.44.1395307631306; Thu, 20 Mar 2014 02:27:11 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Thu, 20 Mar 2014 02:26:31 -0700 (PDT) In-Reply-To: References: <20140319080229.GA83863@mail> <20140319111131.GB83863@mail> <20140320082346.GA61204@mail> <20140320091326.GA65574@mail> Date: Thu, 20 Mar 2014 18:26:31 +0900 X-Google-Sender-Auth: ZCQP1qDNf6cwHWTgLJkETuJG5zw Message-ID: To: Mateusz Kocielski Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113393c8b76d1d04f5065f4b Subject: Re: [PHP-DEV] [RFC] [Discussion] Secure session_regenerate_id() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113393c8b76d1d04f5065f4b Content-Type: text/plain; charset=UTF-8 Hi Mateusz, On Thu, Mar 20, 2014 at 6:19 PM, Yasuo Ohgaki wrote: > > On Thu, Mar 20, 2014 at 6:13 PM, Mateusz Kocielski wrote: > >> On Thu, Mar 20, 2014 at 05:30:36PM +0900, Yasuo Ohgaki wrote: >> > Hi Mateusz, >> > >> > On Thu, Mar 20, 2014 at 5:23 PM, Mateusz Kocielski > >wrote: >> > >> > > > > I agree. But we've got more factors here, it's not a simple tool >> for >> > > > > detection >> > > > > of crimes. If we let "old session" live for x secs, what will >> happen to >> > > > > changes done to the old session? How do you want to resolve that? >> We >> > > should >> > > > > find a balance between complexity and security. >> > > > > >> > > > > >> > > > Currently we have poor mitigation. My proposal provides better >> > > mitigation. >> > > >> > > I still don't see how you want to handle inconsistency between >> sessions. It >> > > seems that your RFC silently ignores that issue. >> > >> > >> > I'm not sure which inconsistency. Could you specify/describe it? >> >> Consider following scenario: >> >> 1. session_regenerate_id(..) is called >> 2. request to /update_session with old session id is done (some key-value >> in >> session is changed) - with your change this request will succeed >> --- from here user uses only new session - >> 3. updated key-value is missing in new session >> >> (same scenario can be triggered now if old session is not deleted) > > > This race condition will not change with or without my proposal. I should be more precise. This race condition will be problem with future RFC not written yet. Problem is a little differ, though. It's addressed and there is solution for it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113393c8b76d1d04f5065f4b--