CPM web plugin omits special characters @,#,$ in username and password

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CPM web plugin omits special characters @,#,$ in username and password

L1 Bithead

During troubleshooting custom CPM webapp plugin I observed that if the account username and/or password fields contain "@", "#" or "$" these characters are omitted by CPM upon password management tasks (verify, change, reconcile) and therefore the plugin fails with Code 9311 Verify process failed - Validation failed, because the CPM tries to logon with a wrong username and/or password. If there are no special characters like those in username and password all works perfectly. I can clearly see in Wireshark captured HTTP traffic that the mentioned special characters are simply omitted from username and password fields. (account username is [email protected], but CPM send usernamedomain.com). For passwords of course this could be handled by specifying these characters as "PasswordForbiddenChars" in the platform, however for username this is a showstopper for applications where email address is the expected username.

 

After some additional testing it turned out that this is NOT plugin specific. I can reproduce this behavior with multiple CPM web plugins, even with the official and supported CyberArk Endpoint Privilege Manager (EPM) for SaaS – CPM plugin as well which is an out-of-the-box plugin to be imported to PVWA. Similarly the same issue occurs if I create a CPM plugin from the built-in PSM connection component web form fields for PVWA (PSM-PVWA-v10). So this is NOT plugin specific!

More interestingly when testing the plugin manually (as described in Web applications for CPM

documentation it is fully successful (even with special chars). In that case I can see the successful login in Chrome (with "@" in username) and of course see the expected username and password in Wireshark capture.

 

Any suggestions welcome!

 

Vault, PVWA, CPM version is 13.0

Chrome browser 110.0.5481.178

ChromeDriver 110.0.5481.77

Credentials Management .NET SDK-v12.5.0.10

Plugin.WebApp-v13.0.0.187

 

(Kind of weird that a CPM v13.0 comes with a newer (v13.0) files for:

CANetPluginInvoker.exe

CyberArk.Extensions.Infra.Common.dll

CyberArk.Extensions.Plugins.Models.dll

CyberArk.Extensions.Utilties.dll

CyberArk.Services.Exceptions.dll

than the ones included in Credentials Management .NET SDK-v12.5.0.10., but the documentation instructs to use the latest available on marketplace. Anyway I also tried it with the v13 files, same result.)

1 accepted solution

Accepted Solutions

L7 Applicator

Had the same issue last year, and the following KB article was created as a result of it: https://community.cyberark.com/s/article/CPM-does-not-send-specific-characters-like-and-single-doubl...

 

TLDR: Non-US keyboard layouts cause ChromeDriver to not input certain characters (https://chromedriver.chromium.org/help/keyboard-support). Solution is to add the US QWERTY layout for all local users on the CPM.

 

I asked CyberArk to put this config into the CPM hardening or at least add a useful log message in that scenario, but... nothing happened.

 

Edit: Corrected a typo.

View solution in original post

7 REPLIES 7

L6 Presenter

No clue but at this point I think it warrants opening a case to CyberArk and providing all the logs you have. I am interested to see what comes of this.

Thanks, case already opened

L7 Applicator

Had the same issue last year, and the following KB article was created as a result of it: https://community.cyberark.com/s/article/CPM-does-not-send-specific-characters-like-and-single-doubl...

 

TLDR: Non-US keyboard layouts cause ChromeDriver to not input certain characters (https://chromedriver.chromium.org/help/keyboard-support). Solution is to add the US QWERTY layout for all local users on the CPM.

 

I asked CyberArk to put this config into the CPM hardening or at least add a useful log message in that scenario, but... nothing happened.

 

Edit: Corrected a typo.

Thanks a lot Bernhard! However, I have US QWERTY layout added on the CPM.

Well, I had two keyboard layouts in Windows language options: US QUERTY and Hungarian QUERTZ. I removed Hungarian QUERTZ + reboot CPM and CPM web plugins started to work as expected (even with the mentioned special characters in username and password). Than I re-added Hungarian QUERTZ keyboard layout + reboot CPM and CPM web plugins still work as expected. Creepy..

 

Thanks @Bernhard Brückler​  for you help!!

Hi @Laszlo Bruszik​,

Could you kindly mark @Bernhard Brückler​'s answer as best if it helped you?

L1 Bithead

This MS article may help others to remove the unwanted non US QUERTY keyboard layouts on the CPM server that apparently interfere with Chromedriver.

 

How to remove/ delete unwanted keyboard layouts automatically - Microsoft Community

  • 1 accepted solution
  • 1135 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!