TScaria621837 (Community Member) asked a question.

How to solve CWE 1174 - ASP.NET Misconfiguration: Improper Model Validation in c#

Hi,

In the last scan we got too many CWE 1174 (Improper Model Validation) flaws in application.

 

This is one of the sample lines of code –

public string strLocation { get; set; }

public string XML { get; set; }

 

VeraCode scan raised CWE 1174 issue against these lines. The variable 'strLocation' not used in the application and 'XML' is used. But both lines shows the flaw.

 

Please suggest how to resolve these?

 

Thanks,

 

Jaisa Thomas


Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.