Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97397 invoked from network); 3 Feb 2014 07:31:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 07:31:33 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.160.175 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.175 mail-yk0-f175.google.com Received: from [209.85.160.175] ([209.85.160.175:63644] helo=mail-yk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/53-15628-3D54FE25 for ; Mon, 03 Feb 2014 02:31:32 -0500 Received: by mail-yk0-f175.google.com with SMTP id q200so36889114ykb.6 for ; Sun, 02 Feb 2014 23:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=Te9tMthuC3Rj3dvVlR+vOLe8F8rwHqyGxGh/lfPcabY=; b=al/lAPsckSxmjTq0ppkRKhEpTuLiTdEpjPrC3BNaZr0e9NvloSX9WAP07DBN7lo5nF C3jgAnzPpgBEGPe7E7xnUP5TXCippjP2wiI0UM1kRTfZesY4qaKaGTTTjdpzLExVy47L tcV6ZFYyURHgTLPOeoKRW22NFBSfChLIC8HPw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Te9tMthuC3Rj3dvVlR+vOLe8F8rwHqyGxGh/lfPcabY=; b=nCVRfxNYES4UjaZYEfMbIBla1mU2SDp8rlBWer6BuKv0ouvlLSesnItGLLyS1zE201 hxo1Im1LTy6TQvKevJMz86Cc7r+ko8zzY3ZjZnMLaVed+TmwkeaDDIJJySeQPe8++DQw YLk/p2GYCusEBBGCSLS77HYMsqC56i3QGRN/v/c7lT/znG5K5MRQPULh+Gk83OoAeFeU ePyqzHEgUEHULFtGET2Ab0LV/Lb+LD4Mq31sL4rScMvrXkNRrRaoPaO8hKdYbRBpYG4B Aw5DEAphhv6IWy+9b2RCFT2LVZbbbSwKnYSPEBpUwpiumez/9rVw3TYAIThL7RsXgr3p n7AQ== X-Gm-Message-State: ALoCoQnbEKSiM0D3Ml2HNO/zmKwTMqBjCCVBhb+ONxbUR8jjTkTd3No7m/R/51ZNjTeiqTOlM6Zl MIME-Version: 1.0 X-Received: by 10.236.132.74 with SMTP id n50mr31857738yhi.20.1391412688738; Sun, 02 Feb 2014 23:31:28 -0800 (PST) Received: by 10.170.144.85 with HTTP; Sun, 2 Feb 2014 23:31:28 -0800 (PST) Date: Mon, 3 Feb 2014 09:31:28 +0200 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Secure Session Module Options by Default From: narf@devilix.net (Andrey Andreev) Hey, Just sharing my initial thoughts on this ... 'use_strict_mode' is supposed to generate a new session ID when the application receives a session cookie with an invalid (non-existing) session ID. I don't think that it should've ever changed the behavior of session_id() and I'd rather consider it a bug if it doesn't allow it to set the new session ID. 'hash_bits_per_character' has nothing to do with security and its only useful purpose that I could think of is maintainig BC for database-stored session data, where i.e. the ID used to be an md5 hash and and switching to sha1 would require altering the field length to 40. Increasing hash_bit_per_character in that case would allow a sha-1-sized hash to be stored in 32 characters. Other than that (and probably some crazy traffic volume-related micro-optimization), it's pretty useless. That "allow an underscore when hash_bits_per_character=6" is also not in the scope of security and the hash function itself wouldn't generate an underscore, so ... what has it got to do with anything? Cheers, Andrey.