LOGGER.debug("response" + SecurityUtils.htmlEscape(result.toString()));
Veracode Issue: Improper Output Neutralization for Logs
Why veracode still detects a bug in the above line?
LOGGER.debug("response" + SecurityUtils.htmlEscape(result.toString()));
Veracode Issue: Improper Output Neutralization for Logs
Why veracode still detects a bug in the above line?
Removed the loggers where we are logging unnecessary request and response.
And for Other loggers statements: Issue fixed , instead of encoding the value, we have used ESAPI logger to log statements.
Here is the correct syntax:
LOGGER.debug("response" + WebUtility.HtmlEncode(Convert.ToString(result)));