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

Re: Redhat Linux 6.0 Problem



jlewis lewis org wrote:
> I just noticed another really wierd thing.  For some reason the anonftp
> package on Red Hat (at least 5.2 and 6.0) that includes the libs and bins
> needed for wu-ftpd to work for anonymous FTP includes what seems to be a
> copy of /bin/ash as /home/ftp/bin/sh.  Why the heck would they include a
> bourne shell in the anon bin directory?

I've done "dir patch*" to get a listing of all the patches at
ftp.kernel.org. 

The "*" expansion is something a shell does. My guess is that they
didn't want to duplicate the wildcard expansion into wu-ftpd. 

Note that a shell doesn't have any special privileges. So, indeed for
convenience, exploits regularly do 'exec ("/bin/sh")', but in fact

	while (1) {
	   read (0, buf, 1024);
	   if (fork ()) exit (exec (buf));
	   wait (...);
	}

is a simple shell-substitiute, and short enough to be carried in an
exploit of a few hundred bytes.

Regards, 

	Roger Wolff.

-- 
** R E Wolff BitWizard nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------



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