PVWA SAML authentication not working with Chrome browser (version 80 and above) because of SameSite Cookie Change
Symptom
Chrome version 80, which was released in February 2020, includes a change that may impact SAML authentication.
In earlier releases of Chrome, the SameSite mode defaulted to None. The update defaults the SameSite mode to Lax.
Furthermore, if a SameSite mode of None is specified, Chrome requires the Secure attribute to be specified for the cookie.
Issue is related to PVWA version 12.0 and above (which requires .NET 4.8 Framework)
To reproduce:
Go to v10 login page > Choose SAML authentication > Wait more than 2 minutes to login to the IDP
Result:
Error on the logon screen:
Authentication failure. Please contact your Administrator.
In Chrome developers tools under issues console -
You can see "Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute" error
"CA88888" is under AFFECTED RESOURCES
In "Application" tab, under "Storage->Cookies-> [PVWA URL]", "CA88888" cookie, SameSite is empty.
Environment
12.0;12.1;12.2;14.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA version 12.0
.NET 4.8 Framework
Chrome browser (version 80 and above)
Cause
PVWA is using 'CA88888' cookie to maintain SAML session state in support of the SAML protocol.
This cookie must have a SameSite mode of None and Secure attribute.
In case SameSite mode of None is not specified to 'CA88888' cookie, 'Lax' will be used as default and the cookie will be blocked by Chrome browser.
The Microsoft article “Work with SameSite cookies in ASP.NET” describes the SameSite cookie support added to ASP.NET 4.7.2 and 4.8.
https://docs.microsoft.com/en-us/aspnet/samesite/system-web-samesite
Resolution
Since PVWA version 12.0, as part of security improvements, PVWA is requiring .NET 4.8 Framework
In order for PVWA SAML authentication to work properly - 'CA88888' cookie will properly be set to SameSite mode of None
- You need to make sure that .NET 4.8 Framework is up-to-date with latest cumulative updates.
Specifically "December 10, 2019 Cumulative Update for .NET Framework 3.5 and 4.8" update should be applied. - Please leave only 4.8/4.0 and remove all previous/old versions of .NET on the non-working server.
See Microsoft list of KB articles that support SameSite in .NET Framework
https://docs.microsoft.com/en-us/aspnet/samesite/kbs-samesite