CSeaman145641 (Community Member) asked a question.

Anyone seeing false positives for CWE ID 100 (Technology-Specific Input Validation Problems) in ASP.NET Core 2.2 app for not validating ModelState.IsValid despite the controller being decorated with [ApiController]?

Using [ApiController] on your controller should make model validation automatic and return an HTTP 400 error upon failure in ASP.NET Core 2.1+, correct? If so, then Veracode, you should update this in your Static Scan logic.


Topics (3)

No articles found
Loading

Ask the Community

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