Examples of SQL injection even when using SQLParameter in .NET?

前端 未结 5 1654
孤街浪徒
孤街浪徒 2021-01-06 10:41

I heard that SQL Injection can still be possible when using ADO.NET SQLParameter (paramterised query) for SQL Server.

I am looking for real examples in C#/VB code

5条回答
  •  悲哀的现实
    2021-01-06 11:01

    If you're creating a statement in a stored proc and using sp_executesql, a parameterized query is a false safety net.

提交回复
热议问题