Great Circle Associates Firewalls
(August 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: FTP port 20 & ignorance (curable)
From: Christopher Klaus <cklaus @ shadow . net>
Date: Tue, 2 Aug 94 12:52:13 EDT
To: padgett @ tccslr . dnet . mmc . com (A. Padgett Peterson P.E. Information Security)
Cc: firewalls @ greatcircle . com
In-reply-to: <9408021255 . AA02155 @ uvs1 . orl . mmc . com>; from "A. Padgett Peterson, P.E. Information Security" at Aug 2, 94 8:55 am

> 
> Am a bit confused (and after reading RFC959 & doing some experiments
> am even more so).
> 
> AFAICA, the FTP process is as follows: The user initiates the FTP process
> by making a connection to port 21 of the FTP server from a UDP (user defined
> port which seems to be in the 3000 - 4000 range). When a file is requested
> (unless passive mode is used which not everyone supports) the FTP server
> (which is somewhere out on the net) establishes a connection using a PORT
> command to open a connection from its port 20 to the user's UDP+1 and this
> is the channel over which data is passed.
> 
> This sounds like the Firewall must allow a socket to be opened from port
> 20 at a remote site to "some UDP" port internally.
> 
> My question is "How can a firewall tell the difference between a legitemate
> FTP request initiated locally and an intruder attempting to connect to "some"
> internal port from the intruder's port 20 ?". Is it able to require a previous
> Port 21 connection (allow connection B only if connection A was previously
> made) ? 

Yes, that can be a problem.  I believe mjr @
 tis .
 com or someone on this 
mailing list had modified ftp or ftpd to only do passive mode.  This
would reverse where the connection is originateing from.   

Christopher


-- 
Christopher William Klaus  <cklaus @
 shadow .
 net>  <iss @
 shadow .
 net>
Internet Security Systems, Inc.         Computer Security Consulting
2209 Summit Place Drive,              Penetration Analysis of Networks
Atlanta,GA 30350-2430. (404)998-5871.


References:
Indexed By Date Previous: Re: Intrusion Detection and AI
From: Marcus J Ranum <mjr @ tis . com>
Next: Re: FTP port 20 & ignorance (curable)
From: Brent Chapman <brent @ mycroft . GreatCircle . COM>
Indexed By Thread Previous: FTP port 20 & ignorance (curable)
From: padgett @ tccslr . dnet . mmc . com (A. Padgett Peterson, P.E. Information Security)
Next: Re: FTP port 20 & ignorance (curable)
From: Brent Chapman <brent @ mycroft . GreatCircle . COM>

Google
 
Search Internet Search www.greatcircle.com