A potentially dangerous Request.Path value was detected from the client ExceptionType: System.Web.HttpException
135
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:52 PM
Symptom
I'm attempting to enumerate the members of a safe named P&E_Bowman as seen below. {{BaseURL}}/PasswordVault/WebServices/PIMServices.svc/Safes/P&E_Bowman/Members I get the following error {"_message":"A potentially dangerous Request.Path value was detected from the client (\u0026).","_exceptionType":"System.Web.HttpException"} I tested with multiple safes and when the safe name has an & i get the message. So I believe the issue is the & but & is not a forbidden character in safe naming. So what is the work around?
Environment
10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6 Cyber-Ark API/SDK REST API
Cause
API call ie: {{BaseURL}}/PasswordVault/WebServices/PIMServices.svc/Safes/P&E_Bowman contains invalid characters '&' in the URL.
However, Asp.Net 4.0+ comes with a very strict built-in request validation, part of it is the potential dangerous characters in the url which may be used in XSS attacks. Here are default invalid characters in the url : < > * % & : \ ?
Resolution
make sure the API URL doesn't contains anything like < > * % & : \ ? in the safename or accountname etc.