AS400 forbidden characters in username field

AS400 forbidden characters in username field

127
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:58 PM


Symptom


Unable to password management of AS400 accounts when username consists of special characters,
| ; & $ > < ' \ ! >> #


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;12.6 Privilege Cloud Central Policy Manager (CPM) Central Policy Manager (CPM)
IBM AS400


Cause


As400 enforced the special characters restriction as part of Security measurements based on the OWASP site, https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection).
When the plugin runs a command that includes account input parameters, this action is vulnerable to injection by manipulating with input-like command concatenation.
                
Forbidden Characters and Words blocklist validation on account input parameters can prevent such injection.
 
This restriction stands today via the Plugin's Design and code, can't be removed, and applies to the UserName field. In case of considering removing it, it won't be possible, from a security perspective.
 
The security enforcement for the username via OWASP recommendation is the following list: | ; & $ > < ' \ ! >> #
In case the UserName contains one of the forbidden characters above, by design, the expected failure will be: 
"Code: 9021, Error: The parameter UserName contains invalid characters."


Resolution


For that security enforcement - there isn't any work around via the plugin's scope, and the only alternative will be to suggest the customer to go with Custom development channel.
 


Actions
  • Print
  • Copy Link

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