One of the items that came up on a recent security test was the cookie handling.
Dynamicweb 9.17.7
1. Cookie expiry
The cookie expiry is set to 7 days in the cookie manager.
This only seems to affect the DW_Extranet cookie though.
DW_ExtranetSessionCookie stays set to session
2. DW_ExtranetSessionCookie information
2.1 Re-Authentication.
The cookie can be used for re-authentication. User can logout but if you have the cookie information, you can use it to re-authenticate - even once user has logged out.
2.2 DWExtranetTk
DWExtranetTk does not seem to be used in the cookie. Is this something we need to configure, or what is it used for?
2.3 User and Password
The cookie looks like this:
DWExtranetUsername=myusername&DWExtranetTkn=989d58d1ddblahblahblahe463d6&DWExtranetPassword=encrypted_password
Is it possible to use a token and remove the username and password in the cookies?
I removed DWExtranetUsernameRemember, DWExtranetPasswordRemember and AutoLogin from the login template - this only seemed to affect the DW_Extranet cookie and not DW_ExtranetSessionCookie.
So DW_Extranet looks like : DWExtranetUsername=&DWExtranetPassword=&AL=
But DW_ExtranetSessionCookie retains the Username and Password.
"The password encryption is reversible and relies on weak, hardcoded parameters, so the original password can be recovered from the cookies' values.
The password is encrypted using DES, a legacy algorithm no longer considered suitable for protecting sensitive data, in a configuration where the same fixed value (LKJhsoWE) is used as both the encryption key and the initialisation vector (IV). This value was recovered from publicly accessible Dynamicweb assemblies, meaning it is not secret and can be obtained by anyone."
3. Concurrent Sessions
Is it possible to only allow a single user session and revoke other sessions when they log in on another device?