What is SQL injection [closed]

回眸只為那壹抹淺笑 提交于 2019-12-03 22:15:19

Lots of information about SQL Injection on wikipedia, and xkcd has a very good example as well.

In general, if your application is using a SQL database, a SQL Injection attack is an attempt to use your program to pass dangerous values to the SQL database.

The best preventative measures are to never construct SQL strings without cleaning them up - the best way to do this is to use parameterized queries and widely used data access libraries.

Start here: google "sql injection".

You will see that there is plenty to read about it.

If you want to protect yourself against sql injection, you have to be a bit more specific, as the exact methods differ depending on the database and on the platform using the database.

It is the technique to manipulate the input to control your sql. Read more here is better for you Attacks by Example

Wiki

Couple of places to get started:

  1. OWASP: Lots of principals on secure web app design. Check the first entry of the Top 10 on injection
  2. Injection for .NET developers: Details on what it is and how to protect against it if you're working with .NET.

It allow a attacker to tamper with existing data, destroy the data or make it otherwise unavailable, and in short become administrators of the database server...

This attack involves injecting SQL commands in the query input thus effecting predefined SQL commands exection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!