Top "Sql-injection" questions

SQL injection is a code injection technique, used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field for execution (e.g. to dump the database contents to the attacker).

Examples of SQL Injections through addslashes()?

In PHP, I know that mysql_real_escape is much safer than using addslashes. However, I could not find an …

php sql sql-injection security
Which characters are actually capable of causing SQL injection in mysql

We all know that we should use prepared statements or the appropriate replacement/formatting rules in order to prevent sql …

mysql security escaping sql-injection
Classic ASP SQL Injection Protection

What is a strong way to protect against sql injection for a classic asp app? FYI I am using it …

security ms-access asp-classic sql-injection
A PHP function to prevent SQL Injections and XSS

I am tring to make my PHP as secure as possible, and the two main things I am trying to …

php mysql xss sql-injection
SQL injection on INSERT

I have created a small survey web page on our company Intranet. This web page is not accessible from the …

c# sql sql-injection
Using Magento Methods to write Insert Queries with care for SQL Injection

I am using the Magento's functionality to insert & update queries. My requirement is that I want to take care …

magento sql-injection
how to avoid sql injection in codeigniter

In CodeIgniter, how can I avoid sql injection? Is there any method to set in config file to avoid sql …

function codeigniter sql-injection built-in data-security
Decoding mysql_real_escape_string() for outputting HTML

I'm trying to protect myself from sql injection and am using: mysql_real_escape_string($string); When posting HTML it …

php sql-injection html-encode mysql-real-escape-string
How can sanitation that escapes single quotes be defeated by SQL injection in SQL Server?

To start this off, I am well aware that parameterized queries are the best option, but I am asking what …

sql-server security tsql sql-injection sanitization
How to prevent a SQL Injection escaping strings

I have some queries (to an acccess database) like this : string comando = "SELECT * FROM ANAGRAFICA WHERE E_MAIL='" + user + "…

c# .net sql-injection