C#-CWE

Checks for CWEs in C#

Nested Rules

C#-CWE-20

Improper Input Validation (CWE-20): application fails to validate or sanitize input, allowing unexpected values

C#-CWE-22

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as “..” that can resolve to a location that is outside of that directory

C#-CWE-77

The product constructs commands or command-like strings using externally-influenced input from an upstream component, but it does not properly neutralize or validate special elements that could change the meaning of the command when sent to a downstream component (leading to command injection or unintended command modification)

C#-CWE-78

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component

C#-CWE-79

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users

C#-CWE-89

The product constructs all or part of an SQL command using externally influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream database

C#-CWE-94

Code Injection / Improper Control of Generation of Code (CWE-94): executing or compiling untrusted input as code or expressions

C#-CWE-269

The application performs improper privilege management, which can allow an attacker to escalate privileges or bypass access controls

C#-CWE-276

Incorrect Default Permissions (CWE-276): files or directories created with insecure default ACLs

C#-CWE-287

The application performs improper authentication, which can allow an attacker to bypass authentication mechanisms

C#-CWE-306

Missing authentication for critical functions (CWE-306)

C#-CWE-352

Public controller methods that change state (POST/PUT/DELETE) must enforce CSRF validation

C#-CWE-362

Race condition: unsynchronized access to shared resources can lead to incorrect behavior or security issues

C#-CWE-434

The web application allows unrestricted upload of files with dangerous types that can be automatically processed within the web server’s environment

C#-CWE-502

Deserialization of untrusted data may lead to remote code execution or arbitrary object instantiation (CWE-502)

C#-CWE-798

The product contains hard-coded credentials, such as passwords, API keys, or tokens, which may allow an attacker to gain unauthorized access if the source code is exposed

C#-CWE-862

The product does not perform an authorization check when an actor attempts to access a resource or perform an action

C#-CWE-863

Incorrect Authorization (CWE-863): sensitive actions performed without verifying user authorization

C#-CWE-918

Server-Side Request Forgery (SSRF): application issues HTTP requests to attacker-controlled URLs

Options