Veracode引发技术特定的输入验证问题(CWE ID 100)

时间:2017-12-27 13:08:23

标签: c# veracode

错误标题 技术特定的输入验证问题(CWE ID 100)

错误说明: 此类别中的弱点是由于在特定技术中未充分实施输入验证而引起的。

此错误显示构造函数声明下面的示例的错误编号

public class BusinessRecipient : IModel
{
public List<string> ChProperties { get; set; }
public bool SldDisable { get; set; }

public BusinessRecipient()
{
ChProperties = new List<string>();
 }
}

我已经尝试了数据注释解决方案

public class BusinessRecipient : IModel
{
[Required]
public List<string> ChProperties { get; set; }
public bool SldDisable { get; set; }  

public BusinessRecipient()
{        
ChProperties = new List<string>();     
 }
}

0 个答案:

没有答案
相关问题