+ Reply to Thread
Results 1 to 1 of 1
Like Tree2Likes
  • 2 Post By AnArKI

Thread: SQL Injection Prevention Cheat Sheet Share/Save - My123World.Com!

  1. #1
    Super Administrator AnArKI has a spectacular aura aboutAnArKI has a spectacular aura aboutAnArKI has a spectacular aura about AnArKI's Avatar
    Join Date
    Jul 2010
    Location
    London
    Posts
    501
    Blog Entries
    1
    Thanks
    180
    Thanked 169 Times in 86 Posts

    SQL Injection Prevention Cheat Sheet



    SQL Injection flaws are introduced when software developers create dynamic database queries that include user supplied input. To avoid SQL injection flaws is simple. Developers need to either: a) stop writing dynamic queries; and/or b) prevent user supplied input which contains malicious SQL from affecting the logic of the executed query.

    This article provides a set of simple techniques for preventing SQL Injection vulnerabilities by avoiding these two problems. These techniques can be used with practically any kind of programming language with any type of database. There are other types of databases, like XML databases, which can have similar problems (e.g., XPath and XQuery injection) and these techniques can be used to protect them as well.
    Primary Defenses:
    Option #1: Use of Prepared Statements (Parameterized Queries)
    Option #2: Use of Stored Procedures
    Option #3: Escaping all User Supplied Input
    Additional Defenses:
    Also Enforce: Least Privilege
    Also Perform: White List Input Validation

    Read Full Cheat Sheet:https://www.owasp.org/index.php/SQL_...on_Cheat_Sheet
    b0nd and neo like this.

  2. The Following 2 Users Say Thank You to AnArKI For This Useful Post:

    neo (10-17-2011), SiGnal (06-03-2012)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts