CCP - REST / JSON Forbidden Characters

CCP - REST / JSON Forbidden Characters

119
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:55 PM


Symptom


It's possible for the CPM, when using default platform policy settings, to assign JSON-forbidden characters to a password object.

This can result in a password mismatch between what's seen in PVWA or CLIPasswordSDK, and what's seen in the REST API response.


Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5 This has been observed in CCP Environments, as the API call relies on JSON.

Cause


The following characters are reserved characters and can not be used in JSON and must be properly escaped to be used in strings.

Backspace to be replaced with \b
Form feed to be replaced with \f
Newline to be replaced with \n
Carriage return to be replaced with \r
Tab to be replaced with \t
Double quote to be replaced with \"
Backslash to be replaced with \\


Resolution


CPM will exclude characters specified in the PasswordForbiddenChars parameter in the policy file.

This can be found in Administration > Platform Management. Select the platform you wish to edit, and click the ellipsis button next to that platform, and then click Edit.

On the edit page, expand the properties in the left pane, and head to Automatic Password Management > Generate Password.

Find the parameter PasswordForbiddenChars and add any characters you wish to forbid, such as the backslash or double quotes. Save and apply the change.

You can then force password changes, and new password objects should no longer contain the forbidden characters.


Actions
  • Print
  • Copy Link

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