SQL Injection & Cross Site Scripting

Translation of the original in Catalan. Read it in: CatalàCastellano

It had been a long time since I had written any article on the portal about security. But for a while I had wanted to look into a couple of techniques I still didn't master. So I got 'down to work' and taking advantage of the endless resources of 'google' and securityfocus to start I found these two quite interesting definitions:

SQL Injection

SQL Injection refers to the technique of inserting SQL meta-characters and commands into Web-based input fields in order to manipulate the execution of the back-end SQL queries.

Cross Site Scripting

Cross Site Scripting attacks work by embedding script tags in URLs and enticing unsuspecting users to click on them, ensuring that the malicious Javascript gets executed on the victim's machine.

In case anyone wants to dig deeper into the subject just as I have felt like doing, well here goes a small collection of quite interesting addresses to spend a few hours reading:

Detection of SQL Injection and Cross-site Scripting Attacks [Security Focus]

SQL Injection : Are your web applications vulnerable [SPI Labs]

Advanced SQL Injection In SQL Server Applications [NGSSoftware Insight Security Research (NISR)]

Finally a document that can help you do things better:

Secure Programming for Linux and Unix HOWTO [David A. Wheeler]

The slides of the presentation by: Secure Programming for Linux and Unix HOWTO [David A. Wheeler]

A little tip: if you have 10min to spare, spend them on the website of the author of the documents, it's worth it:

David A. Wheeler

2 comments

Comments from the old blog, as they were written. Comments are closed.

  1. —

    Si hi ha mandra d'aprofondir més sobre el tema, però voleu que
    us ho expliquin una mica tot això del SQL Injection, aquí teniu
    un MP3 que ús ho explica una mica (en anglès, és
    clar)



    "http://fitxers.oriolrius.cat/1188/sql.mp3">http://oriol.joor.net/artic...

  2. —

    Exemples de com funciona el SQL injection:

    http://www.unixwiz.net/techtips/sql-injection.html...