Do not allow large requests in your controller. This may lead to many resource allocations and may be a vector of attack for Denial of Services attacks. Always keep the request size to a reasonable estimate.
publicclassMyController:Controller{ [RequestSizeLimit(500000)]// request is lower than the max (10000000 bytes)publicIActionResultMyRequest(){Console.WriteLine("inside controller");}}
シームレスな統合。 Datadog Code Security をお試しください
Datadog Code Security
このルールを試し、Datadog Code Security でコードを解析する
このルールの使用方法
1
2
rulesets:- csharp-security # Rules to enforce C# security.