All rules →
Rules / C#
SHIELD-CSHARP-001

SQL injection via string concatenation in SqlCommand

criticalC#CWE-89CVSS 9.8

What it detects

A SqlCommand is built by concatenating untrusted strings directly into the query text.

How to fix

Use parameterized queries with SqlParameter instead of concatenating values into the SQL string.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-001: SQL injection via string concatenation in SqlCommand — Zennoxa Shield