What sort of SQL injection attacks is the MS Access ODBC Driver susceptible to?

Anything to do with the design, implementation and management of Databases (MSSQL, MySQL, Oracle, PostgreSQL)

What sort of SQL injection attacks is the MS Access ODBC Driver susceptible to?

Postby Purple Moogle on Sat Aug 08, 2009 11:18 pm

Okay I'm replacing all apostrophes ' with double apostrophes '' (not quote marks, two apostrophe characters). This seems to prevent most of my attempts to insert any SQL fails.

Can anyone think of any way to insert SQL?


Powered by Yahoo Answers
Purple Moogle
 
Posts: 1
Joined: Thu Jul 30, 2009 11:18 pm

Re: What sort of SQL injection attacks is the MS Access ODBC Driver susceptible to?

Postby Mehdi on Mon Aug 17, 2009 11:33 pm

Remove NULL characters from input.

SQL NULLs are not the same as programming/scripting NULLs, and they may be put in to terminate a line by exception (overflow errors), allowing for the double dash ( e.g.: SQL single line comments) to be inserted, which in turn can allow for arbitrary code to follow...

Check this page: http://msdn.microsoft.com/en-us/library/ms161953.aspx . They explain it better than I can.
Mehdi
 
Posts: 19
Joined: Thu Jan 10, 2008 10:57 pm

Re: What sort of SQL injection attacks is the MS Access ODBC Driver susceptible to?

Postby sirdice on Wed Sep 09, 2009 11:47 pm

Yeah, loads. Quotes aren't the only thing you need to watch for.
sirdice
 
Posts: 1
Joined: Thu Nov 06, 2008 12:18 am

Re: What sort of SQL injection attacks is the MS Access ODBC Driver susceptible to?

Postby Germann A on Fri Sep 25, 2009 11:56 pm

http://www.google.co.uk/search?q=sql+injection+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

BTW: the driver on it's own is NOT susceptible to SQL injection, it is your code that passes generated SQL to the driver...
Germann A
 
Posts: 2
Joined: Mon Aug 10, 2009 11:18 pm


Return to Databases

Who is online

Users browsing this forum: No registered users and 1 guest

cron