[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#88055: security hole in joe



On Thu, Mar 01, 2001 at 03:13:14AM +0100, Josip Rodin wrote:
> On Wed, Feb 28, 2001 at 03:20:39PM -0800, Joey Hess wrote:
> > Package: joe
> > Version: 2.8-18
> > Severity: grave
> > 
> > joey@kite:/tmp>echo "this is not a valid .joerc, I'll bet!" > .joerc
> > joey@kite:/tmp>joe foo
> > Processing '.joerc'...
> > .joerc 1: No context selected for macro to key-sequence binding
> > done
> > There were errors in '.joerc'.  Use it anyway?n
> > Processing '/etc/joe/joerc'...done
> 
> Funny how the first attempt of me reproducing this, with a valid command,
> caused this:
> 
> [joy@pork:/tmp]% echo '-help' > .joerc
> [joy@pork:/tmp]% joe foo
> Processing '.joerc'...done
> zsh: segmentation fault (core dumped)  joe foo
> 
> I wonder what's the best fix for this bug... check ownership of ./.joerc
> file before trying to read it? Not read it at all?

Don't read it at all, please.  I guess there's a command line option to
choose an rc file?  If so, I'd have no qualms about killing this
behavior.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team



Reply to: