Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: SQL Injection Basics

From: Dennis Hurst <dhurst(at)spidynamics.com>
Date: Mon Feb 10 2003 - 17:05:36 EST


Nick,

It really doesn't matter if the developer used tick marks or not, just if you can inject something the developer didn't plan for into the SQL string. If an extra tick (and many other character combinations) gets injected anywhere in the string you will have SQL Injection issues.

If the developer does not parse for unexpected strings there are probably issues, regardless of what the SQL statement looks like.

Have a great day,

Dennis Hurst
dhurst@spidynamics.com
SPI Labs

-----Original Message-----
From: Nick Jacobsen [mailto:nick@ethicsdesign.com] Sent: Monday, February 10, 2003 4:38 PM
To: dhurst@spidynamics.com; webappsec@securityfocus.com Subject: Re: SQL Injection Basics

Right, I wasn't thinking too well... makes sense. Though, according to quite a few SQL injection faqs I have read, it said that you could only inject code if the developer used tick marks. However, I just recently used
SQL injection on some code where the developer used NO tick marks, but injection still worked if the injection string contained TWO tick marks. Was this just a fluke, or is it something that the faqs had wrong?

Nick J.
nick@ethicsdesign.com

  • Original Message ----- From: "Dennis Hurst" <dhurst@spidynamics.com> To: "'Nick Jacobsen'" <nick@ethicsdesign.com> Cc: <webappsec@securityfocus.com> Sent: Monday, February 10, 2003 8:59 AM Subject: RE: SQL Injection Basics
Do you need help?X

> Nick,
(ASP
> pages). Here's the deal, the ' only acts as a comment if it's in the
with
> something that acts like this:
VBScript
> the
> " ' " mark is a comment mark, and therefore never used in SQL
server
> > and executing an a malicious query instead of what was expected by
the
> > developer. Depending on the remote server (Oracle, Microsoft SQL,
?
> > >
> > > If I use www.victim/test.asp?userid=sfdsd
thats
> the
> English translation equiv in my case).
is
> the
> syntax I should use ?
closed
> source commercial btw). Am I right is saying that the SQL plugin has
to
> connect directly to the database to work ? I can only see port 80 so
Received on Mon Feb 10 17:33:15 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:48 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library