« SQLBrute updated with psyco support | Main | EUSecWest slides are available »


New tool to look out for - SQLiX

Just a quick note - I had some brief correspondance recently with Cedric Cochin who has written a tool that does some of the same stuff as my SQLBrute tool called SQLiX.

I've had a quick look at the tool, and there is some interesting stuff there - it does a lot of the testing by taking a different approach to what I have done. It's built as a scanner, has a spidering function, and can take an input file for doing scanning (which appears to be a similar format to that produced by IEnterceptor).

I'll be trying this out on some other sample applications to see how this can fit into my toolbox, and to see what I would add or change about the tool. In the meantime, see a sample run of the tool below to see it run against the Acunetix sample vulnerable site.

Demo of SQLiX tool
perl SQLiX.pl -crawl http://test.acunetix.com/ -exploit -all -v=2
======================================================
                   -- SQLiX --
 © Copyright 2006 Cedric COCHIN, All Rights Reserved.
======================================================

Analysing URI obtained by crawling [http://test.acunetix.com/]
  http://test.acunetix.com/
  http://test.acunetix.com/privacy.php
  http://test.acunetix.com/userinfo.php
  http://test.acunetix.com/login.php
  http://test.acunetix.com/signup.php
  http://test.acunetix.com/AJAX/index.php
  http://test.acunetix.com/guestbook.php
  http://test.acunetix.com/cart.php
  http://test.acunetix.com/disclaimer.php
  http://test.acunetix.com/artists.php
  http://test.acunetix.com/comment.php?aid=3
         [X] working on aid
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                 [X] Method: SQL Blind Integer Injection
                 [X] Method: SQL Blind Statement Injection
                 [X] Method: SQL Blind String Injection
  http://test.acunetix.com/artists.php?artist=3
         [X] working on artist
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                 [X] Method: SQL Blind Integer Injection
                         [FOUND] Blind SQL Injection: Integer based
                         [FOUND] Database type: MySQL Server
                         [INFO] Current function: version()
                         [INFO] length: 9
                         4.0.25-nt
                         [FOUND] SQL Blind Integer Injection
  http://test.acunetix.com/listproducts.php?artist=3
         [X] working on artist
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                         [WARNING] Match found in reference(NULL) - You have an error in your SQL syntax
                         [FOUND] SQL error message
  http://test.acunetix.com/comment.php?aid=2
         [X] working on aid
                 [X] Method: SQL Blind Integer Injection
                 [X] Method: SQL Blind Statement Injection
                 [X] Method: SQL Blind String Injection
  http://test.acunetix.com/artists.php?artist=2
  http://test.acunetix.com/listproducts.php?artist=2
  http://test.acunetix.com/comment.php?pid=7
         [X] working on pid
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                 [X] Method: SQL Blind Integer Injection
                 [X] Method: SQL Blind Statement Injection
                 [X] Method: SQL Blind String Injection
  http://test.acunetix.com/showimage.php?file=./pictures/7.jpg
         [X] working on file
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                 [X] Method: SQL Blind Statement Injection
                         [WARNING] both A HREF trees are identical
                 [X] Method: SQL Blind String Injection
                         [WARNING] both A HREF trees are identical
  http://test.acunetix.com/product.php?pic=7
         [X] working on pic
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                 [X] Method: SQL Blind Integer Injection
                         [FOUND] Blind SQL Injection: Integer based
                         [FOUND] Database type: MySQL Server
                         [INFO] Current function: version()
                         [INFO] length: 9
                         4.0.25-nt
                         [FOUND] SQL Blind Integer Injection
  http://test.acunetix.com/comment.php?aid=1
         [X] working on aid
  http://test.acunetix.com/artists.php?artist=1
  http://test.acunetix.com/listproducts.php?artist=1
  http://test.acunetix.com/comment.php?pid=6
         [X] working on pid
                 [X] Method: SQL Blind Integer Injection
                 [X] Method: SQL Blind Statement Injection
                 [X] Method: SQL Blind String Injection
  http://test.acunetix.com/showimage.php?file=./pictures/6.jpg
  http://test.acunetix.com/product.php?pic=6
  http://test.acunetix.com/comment.php?pid=5
         [X] working on pid
  http://test.acunetix.com/showimage.php?file=./pictures/5.jpg
  http://test.acunetix.com/product.php?pic=5
  http://test.acunetix.com/comment.php?pid=4
  http://test.acunetix.com/showimage.php?file=./pictures/4.jpg
  http://test.acunetix.com/product.php?pic=4
  http://test.acunetix.com/comment.php?pid=3
  http://test.acunetix.com/showimage.php?file=./pictures/3.jpg
  http://test.acunetix.com/product.php?pic=3
  http://test.acunetix.com/comment.php?pid=2
  http://test.acunetix.com/showimage.php?file=./pictures/2.jpg
  http://test.acunetix.com/product.php?pic=2
  http://test.acunetix.com/comment.php?pid=1
  http://test.acunetix.com/showimage.php?file=./pictures/1.jpg
  http://test.acunetix.com/product.php?pic=1
  http://test.acunetix.com/categories.php
  http://test.acunetix.com/listproducts.php?cat=4
         [X] working on cat
                 [X] Method: MS-SQL error message
                 [X] Method: SQL error message
                         [WARNING] Match found in reference(NULL) - You have an error in your SQL syntax
                         [FOUND] SQL error message
  http://test.acunetix.com/listproducts.php?cat=3
  http://test.acunetix.com/listproducts.php?cat=2
  http://test.acunetix.com/listproducts.php?cat=1
  http://test.acunetix.com/index.php

RESULTS:
The variable [artist] from [http://test.acunetix.com/artists.php?artist=3] is vulnerable to SQL Injection [Integer without quote - MySQL].
The variable [artist] from [http://test.acunetix.com/listproducts.php?artist=3] is vulnerable to SQL Injection [Error message (NULL) - MySQL].
The variable [pic] from [http://test.acunetix.com/product.php?pic=7] is vulnerable to SQL Injection [Integer without quote - MySQL].
The variable [cat] from [http://test.acunetix.com/listproducts.php?cat=4] is vulnerable to SQL Injection [Error message (NULL) - MySQL].

Found this useful? Then Digg It.


Comments (1)

psychorugger:

Have you had any problems getting SQLiX to run? I'm getting a ton of errors. I like the functionality though.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

All spam will be reported

About

This page contains a single entry from the blog posted on July 27, 2006 4:26 PM.

The previous post in this blog was SQLBrute updated with psyco support.

The next post in this blog is EUSecWest slides are available.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.36

Valid XHTML 1.0!