What Is Sql Injection?

Author: admin  //  Category: SQl Injection

Detail about SQL Injection.How it can be prevented in .Net and PHP?

Tags: ,

5 Responses to “What Is Sql Injection?”

  1. Sleeping Troll Says:

    SQL injection is an attack in which malicious code is inserted into strings that are later passed to an instance of SQL Server for parsing and execution. Any procedure that constructs SQL statements should be reviewed for injection vulnerabilities because SQL Server will execute all syntactically valid queries that it receives. Even parameterized data can be manipulated by a skilled and determined attacker.
    I have a script somewhere for “scrubbing” responses, if you want it, IM me or wait and I will post it later.

  2. Anonymous Says:

    Here’s an example:
    login: #
    pass: #
    in php
    $user = $_POST['login']; //so $user’s value is ‘#’
    $sql = “select * where login = ‘ . $user . “‘”;
    sql_query(sql);
    since # is denotes a sql comment the query string turns into
    select * where login = ‘ ;
    That query is not valid, and will cause an error, or even worse it will return information to an un-authenticated user.

  3. Anonymous Says:

    “An attack technique used to exploit web sites by altering backend SQL statements through manipulating application input.”
    SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another. SQL injection attacks are also known as SQL insertion attacks.
    mysql_real_escape_string does is take a string that is going to be used in a MySQL query and return the same string with all SQL Injection attempts safely escaped. Basically, it will replace those troublesome quotes(’) a user might enter with a MySQL-safe substitute, an escaped quote ‘.

  4. AyM b Says:

    sql injection involves malicious attack on the target machine via querrying , and yu also specify port number in the query .

  5. Anonymous Coward Says:

    It happens when you pass unfiltered data directly to SQL.

Leave a Reply