Re: [RFC DRAFT] Automatic CSRF Protection

From: Date: Thu, 12 May 2016 01:53:23 +0000
Subject: Re: [RFC DRAFT] Automatic CSRF Protection
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-93258@lists.php.net to get a copy of this message
On Thu, May 12, 2016 at 4:13 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi Arvids, > I don't force, but CSRF protection is optional. If you don't need it, > don't use simply. You actually do by using ini settings for that, or potentially force it. Now the main issue is not about whether or not csrf is a good thing, we all agree on that. In my opinion the questions are: 1. do we want csrf features in core? I do not think it should. But if we decide it should then the way it is proposed is sub optimal. CSRF usage depends strongly on the application or request type, TTL and other behaviors as well. That being said, that means the use of INI settings and global SESSION array is wrong. It must be a public API. 2. if yes, does it have to be part of the session extension? My answer is clearly no. We must rather simplified improved the session implementations and APIs, focusing purely on its core purposes, managing session data storage and provides interfaces&APIs to match application needs. We do not do that very well anymore. I will leave this thread for now as I will going to repeat myself more than you wish, I think we made our points clear :) Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#93258) next »