i am facing trust boundary violation issue in my application for this using below method but applciation is not working!
public static String[] getValidInput(String[] input) {
Log4j.log("info", "Enter Into getValidInput() ESAPI"+Arrays.toString(input));
if(input==null) {
return input;
}
List<String> res = new ArrayList<>();
try {
for(String str :input) {
String output= ESAPI.validator().getValidInput("Validationofinput", str, "SafeString", 1000, false);
res.add(output);
}
return res.toArray(new String[0]);
}
public String getRqst(HttpServletRequest request, String param) {
String[] reqs = Validate.getValidInput(request.getParameterValues(param)); -> here i amgetting trust boundary violation in session variables for this issue i am using ESAPI
SafeString : ^[.\p{Alnum}\p{Space}_-]{0,1024}$
added two below jars to application not working commons-fileupload-1.4, commons-io-2.4