Re: [GitHub #7913] Vulnerability due to insecure default values for session.cookie_secure and session.cookie_httponly

From: Date: Fri, 13 Sep 2024 17:49:34 +0000
Subject: Re: [GitHub #7913] Vulnerability due to insecure default values for session.cookie_secure and session.cookie_httponly
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125536@lists.php.net to get a copy of this message
> Le 13 sept. 2024 à 16:13, etkaar <etkaar@akayo.eu> a écrit : > > Hi! > > I've created this issue in January 2022 but it seems it wasn't noticed yet (since you > probably do watch the mailing lists more than GitHub): > https://github.com/php/php-src/issues/7913 > > Kind Regards, > etkaar Hi, * Defaulting session.cookie_httponly to true seems very reasonable. * Beware that if you set session.cookie_secure to true, you will break websites that are not served across https. Moreover, the reason of the breakage may not be evident. * You forgot another obvious setting: session.cookie_samesite must be "Lax" by default. * We should also consider setting session.use_strict_mode to true, in order to mitigate session fixation attacks. —Claude

« previous php.internals (#125536) next »