Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes) - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)
Date
Msg-id 200405120130.16067.peter_e@gmx.net
Whole thread Raw
In response to Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)  (Martin Pitt <martin@piware.de>)
Responses Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)
List pgsql-bugs
Martin Pitt wrote:
> A week ago we at Debian received the bug report below: due to a
> buffer overflow in psqlodbc it is possible to crash (and possibly
> exploit) apache. I already sent this mail to the psqlodbc list [1],
> but unfortunately got no response so far. So maybe there are some
> hackers here who can help with this?

The problem is that the ODBC driver just writes the long user name or
password into its internal data structures without paying attention the
fact that it's only got 256 bytes of space.  (function PGAPI_Connect in
file connection.c)  It's the oldest bug in the book really.


pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in backend/lib/stringinfo.c:enlargeStringInfo()
Next
From: Martin Pitt
Date:
Subject: Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)