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

SQL injection via ExecuteReader on interpolated string

criticalC#CWE-89CVSS 9.8

What it detects

ExecuteReader or ExecuteScalar runs a command whose text was built with an interpolated string containing variables.

How to fix

Use parameterized commands rather than passing an interpolated SQL string to Execute methods.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-003: SQL injection via ExecuteReader on interpolated string — Zennoxa Shield