Moderator: General Moderators
Roja wrote:- Ensure that bad login attempts (yes, even with remember me cookies) are logged and reviewed often. Once a week is the bare minimum - I highly suggest "daily".
- Set a short window for the remember me functionality
- Force users to renew it with a new manual login with X weeks/months (dont auto-renew on each subsequent access of the site without a login like phpbb does)
- DO NOT STORE USERNAMES OR PASSWORDS IN THE COOKIE. Use identifiers that are hard to identify, like a usernumber (3098475230 is much harder to 'see' than Roja).
- Encrypt the cookie contents
- Limit it to that specific portion of the domain, not *.devnetwork.net
nielsene wrote:What is gained here, or rather are you suggesting anything different than the normal monitoring/logging/reportinng of failed attempts, ie something specific to implementations containing "remember me"?
nielsene wrote:I'm not seeing how any of these activities are different under a member me functionality -- the authenticator is only issued after a successful normal login.
nielsene wrote:If the "remember me" window is short and doesn't auto-extend, you lose all advantages of the second case.
nielsene wrote:Of course. However, a usernumber is equally poor.
nielsene wrote:Usernumbers are weak because they are extremely predictable
nielsene wrote:I think I would also recommend not-encrypting the contents of the "normal" emphemeral tokens for preformance/lack of exposure window reasons.
nielsene wrote:I'm not sure I see the reason for the general proscription.
nielsene wrote:However in general, you often do want the remember me to cross sub domains -- as long as the SSL only flag is set you are aren't exposing the cookie in cleartext on non-ssl protected subdomains, I think you're ok.
if ($toBe || $notToBe) echo 'That is the question'; if ($toBe || $notToBe) echo 'That is the question'; Users browsing this forum: dimitrisdamo and 1 guest