C#


ROSLYN.SECURITY.CA5362 : Potential reference cycle in deserialized object graph (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

Review code that processes untrusted deserialized data for handling of unexpected reference cycles. An unexpected reference cycle should not cause the code to enter an infinite loop. Otherwise, an unexpected reference cycle can allow an attacker to DOS or exhaust the memory of the process when deserializing untrusted data.

This check corresponds to Roslyn rule CA5362. For full rule details, see the Microsoft website: CA5362.

Properties

Class Name Potential reference cycle in deserialized object graph (C#)
Significance security
Mnemonic ROSLYN.SECURITY.CA5362
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Potential reference cycle in deserialized object graph (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.