Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 1996 18:02:07 -0700
From:      Paul Traina <pst@shockwave.com>
To:        guido@gvr.win.tue.nl (Guido van Rooij)
Cc:        marcs@znep.com (Marc Slemko), security-officer@freebsd.org, freebsd-security@freebsd.org
Subject:   Re: bin/1805: Bug in ftpd 
Message-ID:  <199610150102.SAA07582@precipice.shockwave.com>
In-Reply-To: Your message of "Mon, 14 Oct 1996 22:59:19 %2B0200." <199610142059.WAA02649@gvr.win.tue.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
At best, this needs to be on a flag, but the better choice in total would
be to clear all data structures when the library calls return (when using
getpwbyname() and bzero the data structures and context for the whole mess
if an endpwent() is done.

This is not a ftpd bug, and I think we shouldn't touch ftpd to fix it.

  From: guido@gvr.win.tue.nl (Guido van Rooij)
  Subject: Re: bin/1805: Bug in ftpd
  Marc Slemko wrote:
  > A more permanent fix to the source may be something along the lines of the
  > below patch (against RELENG_2_1_5_RELEASE), but there should be an
  > official fix out in the next little bit:
  > 
  
  I'm not really happy with this fix as well, but it's better than nothing.,
  The reason being that if ftp wants to dump core, it should dump core.
  If you prohibit this you'll never be able to debug any problems after
  somethuing went wrong. What should be done is make sure the buffers containin
>>g
  the sensitive info are cleared as soon as the info has been used.
  The same problem could show up with any other suid root program that reads
  the password databases. (if that is indeed the happening. It might also be
  that just the users password string is dumped only.)
  
  I'll investigate things tomorrow evening.
  
  -Guido



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610150102.SAA07582>