Accounts page in v10 UI fails to load after successful authentication

Accounts page in v10 UI fails to load after successful authentication

122
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:52 PM


Symptom


After successful authentication to the PVWA, the accounts page in v10 UI fails to load. SAML and Radius authentication methods are both known to be affected.
 

SAML error in logs:
In the WebApplication log the authentication attempt can be seen, and a successful authentication is made (Rc = 0) to the vault, but afterward when attempting to load the configuration, UserPreferences, and currentuser, failures are seen with "Connection to the Vault was terminated"

...| :: | CASW001I Loading page [/PasswordVault/api/auth/saml/logon]
...| :: | CASW001I Loading page [/PasswordVault/api/auth/saml/logon]
...| :: | Running PASVC [PASVCFullImpersonateEx] (control socket [0]) data socket [0], IP [<ipaddress>] (Vault [<vault>] user [<user>])
...| :: | Done PASVC [PASVCFullImpersonateEx] Rc = 0 (Duration=98 ms). (Vault [<vault>] user [<user>])
...| :: | CASW001I Loading page [/PasswordVault/v10]
...| :: | CASW001I Loading page [/PasswordVault/v10/]
...| :: | CASW001I Loading page [/PasswordVault/api/settings/configuration]
...| :: | CASW001I Loading page [/PasswordVault/api/UserPreferences]
...| :: | CASW001I Loading page [/PasswordVault/api/currentuser]
...| :: | CyberArk.Services.Exceptions.VaultConnectionEndedException: Connection to the Vault was terminated...
...| :: | CyberArk.Services.Exceptions.VaultConnectionEndedException: Connection to the Vault was terminated...
...| :: | CyberArk.Services.Exceptions.VaultConnectionEndedException: Connection to the Vault was terminated...
...| :: | CASW001I Loading page [/PasswordVault/api/currentuser]
...| :: | CyberArk.Services.Exceptions.VaultConnectionEndedException: Connection to the Vault was terminated...


Using the Browser Developer Tools to capture the network traffic it can be seen that when the SAML logon SAML Response is sent from the browser to the PVWA, it get a response from the PVWA with several cookies including: CA11111, CA22222, CA33333, CA55555, and CA66666

POST https://<pvwa.fqdn>/PasswordVault/api/auth/saml/logon HTTP/1.1
HTTP/1.1 302 Found
Location: https://<pvwa.fqdn>/PasswordVault/v10
Set-Cookie: CA33333=; path=/PasswordVault/; SameSite=Strict; HttpOnly
Set-Cookie: mobileState=Desktop; path=/PasswordVault/; SameSite=None; HttpOnly
Set-Cookie: CA11111=<value>; path=/PasswordVault/; SameSite=None; HttpOnly
Set-Cookie: CA22222=<value>; path=/PasswordVault/; SameSite=None; HttpOnly
Set-Cookie: CA55555=saml; path=/PasswordVault/; SameSite=None; HttpOnly
Set-Cookie: CA66666=<value>; path=/PasswordVault/; SameSite=None

But when the next calls go out to https://<pvwa.fqdn>/PasswordVault/v10 and subsequent: configuration, UserPreferences, and currentuser URIs, these cookies are not sent.
GET https://<pvwa.fqdn>/PasswordVault/v10 HTTP/1.1
Cookie: CA88888=7c1ecce3-072d-4382-a46b-f92175f18c21

This results in the PVWA not being able to associate the current session with the successfully authenticated user session.

 

Radius error in Logs:

In the WebApplication log from the PVWA, we see that the session matching the token is not found

[13/01/2021 | 17:17:38.861501] | {pid= 7408} | {tid=     7712} |  ::  | CASW001I Loading page [/PasswordVault/v10/logon/radius]
[13/01/2021 | 17:17:38.862694] | {pid= 7408} | {tid=     7712} |  ::  | Casos SessionFactory Request: AttachSession
[13/01/2021 | 17:17:38.864936] | {pid= 7408} | {tid=     7712} |  ::  | CASSM005E No session instance was found for this token
[13/01/2021 | 17:17:46.457362] | {pid= 7408} | {tid=      592} |  ::  | PASWS001I Starting method GeneralExceptionAttribute::OnException
[13/01/2021 | 17:17:46.477765] | {pid= 7408} | {tid=     7692} |  ::  | PASWS001E Error occurred: Connection to the Vault was terminated.
[13/01/2021 | 17:17:46.479235] | {pid= 7408} | {tid=      592} |  ::  | CyberArk.Services.Exceptions.VaultConnectionEndedException: Connection to the Vault was terminated.



Environment


11.7

Cause


This has been known to happen in the PVWA when there is a conflict with the requireSSL configuration in IIS.

The problem is that the cookies are filtered from the logon response to the v10 request:
* All the cookies that were not marked as "secure" and the "SameSite" were not strict were not include in the request to v10. The reason is because of security enforcement by Chrome.
* The cookies that were filtered are all the CA (CA11111, CA22222 etc.) and mobileState cookies. Those cookies are required for the "logon" procedure.


Resolution


• Open the web.config (By Default: c:\inetpub\wwwroot\PasswordVault\)
• Replace the row:
<httpCookies httpOnlyCookies="true" requireSSL="false" />
with
<httpCookies httpOnlyCookies="true" requireSSL="true" />
• Restart the IIS


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000ob8CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail