How to prevent Sql-Injection on User-Generated Sql Queries

前端 未结 15 1952
伪装坚强ぢ
伪装坚强ぢ 2021-02-10 11:55

I have a project (private, ASP.net website, password protected with https) where one of the requirements is that the user be able to enter Sql queries that will directly query t

15条回答
  •  感情败类
    2021-02-10 12:42

    You can do a huge amount of damage with an update statement.

    I had a project similar to this, and our solution was to walk the user through a very annoying wizard allowing them to make the choices, but the query itself is constructed behind the scenes by the application code. Very laborious to create, but at least we were in control of the code that finally executed.

提交回复
热议问题