Re: New builds posted to jdbc.postgresql.org websit for jdbc driver

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: New builds posted to jdbc.postgresql.org websit for jdbc driver
Дата
Msg-id 20030724012323.GB6234@opencloud.com
обсуждение исходный текст
Ответ на New builds posted to jdbc.postgresql.org websit for jdbc driver  (Barry Lind <blind@xythos.com>)
Ответы Re: New builds posted to jdbc.postgresql.org websit for jdbc driver
Список pgsql-jdbc
On Wed, Jul 23, 2003 at 05:30:52PM -0700, Barry Lind wrote:
> New 7.3 and Dev builds for the driver are posted to the website.  These
> fix two additional sql injection vulnerabilities reported by Oliver
> Jowett and Dmitry Tkach.

Now that it's patched, the one I reported was that you could insert a
literal \0 via setString() and friends, which the backend treated as "end of
query", so you could use a string like this:

  "\0Qrollback;begin;insert into testquerynull(sensitive) values (42);commit\0"

to inject your own query. I suspect this one's been around for quite a
while: I noticed it a few months ago when inadvertently trying to insert
binary data as a String .. but didn't make the connection that it could be
used to inject new queries until the setObject() discussion came up.

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Barry Lind
Дата:
Сообщение: New builds posted to jdbc.postgresql.org websit for jdbc driver
Следующее
От: "Clyde Wright"
Дата:
Сообщение: psql and jdbc insert discrepencies