[29299] in bugtraq

home help back first fref pref prev next nref lref last post

Re: [VulnWatch] pgp4pine stack overflow vulnerability

daemon@ATHENA.MIT.EDU (Jacek Lipkowski)
Thu Mar 13 14:24:20 2003

Date: Thu, 13 Mar 2003 12:52:14 +0100 (CET)
From: Jacek Lipkowski <sq5bpf@acid.ch.pw.edu.pl>
To: Eric AUGE <eauge@fr.cw.net>
In-Reply-To: <20030312125315.T99514@eauge.fr.cw.net>
Message-ID: <Pine.LNX.4.53.0303131248120.24129@acid.ch.pw.edu.pl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 12 Mar 2003, Eric AUGE wrote:

> IV Workaround/Solutions
>
>   Deactivate pgp4pine and use another pgp wrapper for pine :
>   http://pgpenvelope.sourceforge.net/
>   http://www.megaloman.com/~hany/software/pinepgp/stable.html
>   or any other...

or use the following trivial patch:

--- menus.c.orig        2003-03-13 11:16:43.000000000 +0100
+++ menus.c     2003-03-13 12:44:45.000000000 +0100
@@ -34,11 +34,13 @@
                          executed, EOF breaks directly */
        return;
      }
-     else if ((readline[i++]=c) == '\n')
+     else if ((readline[i]=c) == '\n')
      {
+if (i<(CONSOLE_IO_LINE_LENGTH-2)) i++;
        readline[i]='\0';
        fertig=1;
      }
+else if (i<(CONSOLE_IO_LINE_LENGTH-2)) i++;
    }
    fertig=0;




home help back first fref pref prev next nref lref last post