We use the web management adapter on our login page. We recently launch VeraCode in our web application. In the next function, we got CWE80, improperly neutralizing Script -Related HTML tags on a web page (Basic XSS), in line
rev.ErrorMessage = msg;
The following is a function of the WebControlAdapterExtender class.
static public void WriteRegularExpressionValidator(HtmlTextWriter writer, RegularExpressionValidator rev, string className, string controlToValidate, string msg, string expression)
{
if (rev != null)
{
rev.CssClass = className;
rev.ControlToValidate = controlToValidate;
rev.ErrorMessage = msg;
rev.ValidationExpression = expression;
rev.RenderControl(writer);
}
}
Does anyone have a suggestion on how to fix this?
source
share