SQL Injection
SQL Injection
NABEEL MUHAMMED N
NO:35
Introduction
Types of SQL INJECTION
Steps for performing SQL INJECTION
How it Works
Countermeasures
Conclusion
References
SQL Injection is a type of Security Exploit in
which the attacker injects SQL statements to
gain access to restricted resources and make
changes.
SQL Manipulation
Code Injection
•sujit’ or 1=1 --
•login: shweta’ or 1=1 --
•http://search/index.asp?id=sql’ or 1=1 --
• ‘ or 1=1 --
• “ or 1=1 --
•‘ or ‘a’ = ‘a
• “ or “a” = “a
•‘) or (‘a’ = ‘a)
How It Works:
Examples: BadLogin.aspx.cs
Minimize the Privilege of Database Connection
Disable Verbose Error Message
Protect the system account “SA”
SQLBlock
Screen Shots
Conclusion:
http://hack.er.org/sqlinjection
http://hackercentre.com/sqlinjectioncheetsheet
22