pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: 247306@bugs.debian.org
To: pgsql-bugs@postgresql.org
To: Martin Pitt <martin@piware.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)
Date: Wed, 12 May 2004 01:31:37 +0200
Message-ID: <200405120130.16067.peter_e@gmx.net> (raw)
In-Reply-To: <20040511100357.GA23102@ifsr.de>
References: <20040511100357.GA23102@ifsr.de>

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.




view thread (5+ messages)  latest in thread

Message-ID: <200405120130.16067.peter_e@gmx.net>
Permalink:  ../200405120130.16067.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200405120130.16067.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: peter_e@gmx.net, 247306@bugs.debian.org, pgsql-bugs@postgresql.org, martin@piware.de
  Subject: Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes)
  In-Reply-To: <200405120130.16067.peter_e@gmx.net>
  References: <20040511100357.GA23102@ifsr.de> <200405120130.16067.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox