RE: SQL-Injection escape ')'

From: Esmat, Ayman (ISS Middle East) (AEsmat@iss.net)
Date: Mon Jul 05 2004 - 01:54:41 EDT


Hi,

We used to put '\' before using the special-characters. Try this:
A'\) select name from sysobjects where xtype='U'--

-----Original Message-----
From: Strcpy [mailto:elite_netbios@yahoo.com]
Sent: Saturday, July 03, 2004 5:46 PM
To: pen-test@securityfocus.com
Subject: SQL-Injection escape ')'

Hi list .

I`m working on a web-application for vulnerability
assesments in order to complete a pen-test job.

there is a vulnerable query there but I can`t escape
it ad use it to go farther .
the page script add a ')' to end of query string
always.
I tried to pass it by useing # or -- or ')'=')' at the
end of my query strings , but non worked :/

here is an example :
i sent this :
A') select name from sysobjects where xtype='U'--

[Microsoft][ODBC Microsoft Access Driver] Syntax
error. in query expression 'city_name='Tehran' and
(agency_english ='A') select name from sysobjects
where xtype='U'--')'

would you mind please help me ?

[sorry for poor English]

thnq all

                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:53:57 EDT