AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerC#breadcrumb dividerResource LeakFeedbackFeedback icon

Amazon Q

Detector Library

C# detectors (43/43)

Method Input ValidationPassword ComplexityXml External EntityMemory Marshal CreateSpanCross-Site Request Forgery (CSRF)Module InjectionImproper Cryptographic Signature VerificationResource LeakObsolete CryptographyInefficient Regular ExpressionDouble Epsilon EqualityUnrestricted File UploadOutput Cache ConflictsUnsafe XSLT Setting UsedCross Site Scripting (XSS)Weak Cipher AlgorithmStack Trace ExposureXPath InjectionOS Command InjectionUnvalidated RedirectInteger OverflowAvoid Persistent CookiesUntrusted DeserializationLDAP InjectionWeak Random Number GenerationPath TraversalDebug BinarySensitive Information LeakWebconfig Trace EnabledInter Process Write of RegionInfoCode InjectionMissing AuthorizationJWT TokenValidationParameters No ExpiryRazor Use of html stringServer-Side Request Forgery (SSRF)Origins Verified Cross Origin CommunicationsPrevent Excessive AuthenticationImproper AuthenticationCertificate Validation DisabledInsecure CryptographyLog InjectionMass AssignmentCookie Without SSL Flag

Resource Leak High

Resource is not released properly, it may result in a potential leak, causing system inefficiencies and instability. Following best practices such as closing connections when not needed can help mitigate the risk of resource leaks.

Detector ID
csharp/resource-leak@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-404
Tags
-