Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: sftp logging patch: http://sftplogging.sourceforge.net

From: Ben Lindstrom <mouring(at)etoh.eviladmin.org>
Date: Thu Jun 19 2003 - 10:49:31 EDT

I'd suggest people stear clear of this patch until the programmer fixes it. It does it's work by depending on environment variables which can easily be tainted by the end-user.

Since all subsystems are ran with $USERSHELL -c $SUBSYSTEMCMD. Someone can easily reset the environment strings in their non-interactive profile.

The only time this maybe secure is if $USERSHELL is a custom shell (rssh, sftp-server, etc) that has no non-interactive profiles that can be tampered with.

It would be much better to either pass the stuff on the commandline.. IE

Subsystem sftp sftp-server -L -F info ..etc..

Or give sftp-server it's own configuration file that is ran on startup.

The issue of user environment taint in sftp-server has been brought up a few times over on openssh-unix-dev@ list in regards to a sftp-server.c patch for chroot() (people using getenv('HOME') instead of the correct getpw*() C command).

  • Ben
Do you need help?X

On 18 Jun 2003, Michael Martinez wrote:

> Sftp logging
> umask setting
Received on Fri Jun 20 00:34:10 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:59 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library