GitLab Advanced SAST rules: C#

  • Tier: Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Rules used by GitLab Advanced SAST to detect vulnerabilities in C# code.

Rule IDRule descriptionCWEOWASP Top 10
csharp-dapper-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
csharp-lang-cmdi-os-command-injection-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
csharp-lang-cmdi-process-start-taintImproper neutralization of special elements used in an OS command(‘OS Command Injection’)CWE-78A1:2017, A03:2021
csharp-lang-codei-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
csharp-lang-crypto-certificate-validation-disabled-atomicCertificate validation disabledCWE-295A2:2017, A07:2021
csharp-lang-crypto-weak-cipher-alg-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
csharp-lang-crypto-weak-cipher-mode-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
csharp-lang-crypto-weak-hashing-function-atomicUse of a broken or risky cryptographic algorithm (SHA1/MD5)CWE-327A3:2017, A02:2021
csharp-lang-crypto-weak-rng-atomicUse of cryptographically weak Pseudo-Random Number Generator (PRNG)CWE-338A3:2017, A02:2021
csharp-lang-csrf-input-no-validate-antiforgery-token-atomicPotential Cross-Site Request Forgery (CSRF)CWE-352A5:2017, A01:2021
csharp-lang-deserialization-binaryformatter-taintDeserialization of potentially untrusted dataCWE-502A8:2017, A08:2021
csharp-lang-deserialization-soapformatter-taintDeserialization of potentially untrusted dataCWE-502A8:2017, A08:2021
csharp-lang-deserialization-taintDeserialization of potentially untrusted dataCWE-502A8:2017, A08:2021
csharp-lang-ldapi-taintImproper neutralization of special elements used in an LDAP query (‘LDAP Injection’)CWE-90A1:2017, A03:2021
csharp-lang-misconfiguration-cookie-httponly-atomicSensitive cookie without ‘HttpOnly’ flagCWE-1004A6:2017, A05:2021
csharp-lang-misconfiguration-cookie-secure-atomicSensitive cookie in HTTPS session without ‘Secure’ attributeCWE-614A6:2017, A05:2021
csharp-lang-misconfiguration-input-validation-atomicASP.NET input validation disabledCWE-554A6:2017, A05:2021
csharp-lang-misconfiguration-password-complexity-atomicWeak password requirementsCWE-521A2:2017, A07:2021
csharp-lang-openredirect-taintURL redirection to untrusted site ‘open redirect’CWE-601A1:2017, A03:2021
csharp-lang-pathtraversal-aspnetcore-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-fileproviders-low-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-fileproviders-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-reflection-taintUse of externally-controlled input to select classes or code (‘Unsafe Reflection’)CWE-470A01:2017, A03:2021
csharp-lang-pathtraversal-systemio-low-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemio-medium-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemio-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemiocompression-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemnet-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemweb-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-pathtraversal-systemxml-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
csharp-lang-sqli-injection-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
csharp-lang-sqli-mysqlconnector-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
csharp-lang-sqli-sql-command-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
csharp-lang-ssrf-http-client-taintServer Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
csharp-lang-ssrf-rest-client-taintServer Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
csharp-lang-ssrf-web-client-taintServer Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
csharp-lang-ssrf-web-request-taintServer Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
csharp-lang-xpathi-xml-query-taintImproper neutralization of data within XPath expressions (‘XPath Injection’)CWE-643A1:2017, A03:2021
csharp-lang-xss-html-elements-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A1:2017, A03:2021
csharp-lang-xss-scriptxss-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
csharp-lang-xxe-externalxmlentities-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A1:2017, A03:2021
csharp-lang-xxe-unsafe-xslt-setting-used-atomicImproper restriction of XML external entity referenceCWE-611A4:2017, A05:2021
csharp-lang-xxe-xmldocument-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A1:2017, A03:2021
csharp-lang-xxe-xmlreadersettings-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A1:2017, A03:2021
csharp-newtonsoft-deserialization-json-taintDeserialization of potentially untrusted dataCWE-502A8:2017, A08:2021
csharp-razor-ssti-razlorlight-filebased-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021
csharp-razor-ssti-razlorlight-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021
csharp-razor-ssti-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021