From nobody@FreeBSD.org  Fri Mar 16 05:38:16 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 04DBA37B718
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Mar 2001 05:38:16 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f2GDcFr30830;
	Fri, 16 Mar 2001 05:38:15 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200103161338.f2GDcFr30830@freefall.freebsd.org>
Date: Fri, 16 Mar 2001 05:38:15 -0800 (PST)
From: hawk@cii.sumy.ua
To: freebsd-gnats-submit@FreeBSD.org
Subject: ftpd eats all memory
X-Send-Pr-Version: www-1.0

>Number:         25853
>Category:       misc
>Synopsis:       ftpd eats all memory
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jlemon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 16 05:40:01 PST 2001
>Closed-Date:    Fri Jun 15 14:34:35 PDT 2001
>Last-Modified:  Fri Jun 15 14:35:51 PDT 2001
>Originator:     Sergey Tkachyov
>Release:        4.2-STABLE
>Organization:
ISP CII
>Environment:
FreeBSD sat.cii.net.ua 4.2-STABLE FreeBSD 4.2-STABLE #0: Thu Mar  1 10:47:57 EET 2001     root@sat.cii.net.ua:/usr/src/sys/compile/KOMORA  i386
>Description:
[15:32]sat@/home/hawk$ ftp sat
Connected to komora.cii.net.ua.
220 sat.cii.net.ua FTP server (Version 6.00LS) ready.
Name (sat:hawk): ftp
331 Guest login ok, send your email address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls */../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*

After it ftpd eats all memory and swap space. At last it was killed by kernel

>How-To-Repeat:
On ftp do:
ls */../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jlemon 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Mar 16 05:45:26 PST 2001 
Responsible-Changed-Why:  
Bad guys listen our stories :-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25853 

From: Ruslan Ermilov <ru@FreeBSD.ORG>
To: hawk@cii.sumy.ua
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/25853: ftpd eats all memory
Date: Fri, 16 Mar 2001 15:44:59 +0200

 On Fri, Mar 16, 2001 at 05:38:15AM -0800, hawk@cii.sumy.ua wrote:
 > 
 > After it ftpd eats all memory and swap space. At last it was killed by kernel
 > 
 > ls */../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*
 > 
 This was demonstrated and fixes yesterday in CURRENT.
 
 
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
State-Changed-From-To: open->closed 
State-Changed-By: jlemon 
State-Changed-When: Fri Jun 15 14:34:35 PDT 2001 
State-Changed-Why:  
Some limits were added to 4.3 to restrict the scope of this problem. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25853 
>Unformatted:
