Static Analysis Group (Archived) — PDabhi155700 (Community Member) asked a question.

CWE ID 502 (Deserialization of Untrusted Data) Fix

Team,

 

We have a code that does the following thing 

JsonConvert.DeserializeObject<MyCustomObject>(strCustomObject,new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.None});

 

As we see that the type name handling is set to None. Still Veracode flags this as an issue. The automatic scanning engine is not able to detect this as a fix.

 

Is there anything that is required more to fix this?

 

If not should I mark this as a potential false positive?

 

Thank you.

 

Regards,

Pratik


Topics (2)

No articles found
Loading

Ask the Community

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