RE: FTP Proxy

From: Fernando Gont (fernando_at_gont.com.ar)
Date: 01/30/04

  • Next message: Ho Chaw Ming: "Re: Domain HiJacking by SPAMMERS"
    Date: Thu, 29 Jan 2004 21:11:32 -0300
    To: <gillettdavid@fhda.edu>, "'pablo gietz'" <pablo.gietz@nuevobersa.com.ar>
    
    

    At 11:19 29/01/2004 -0800, David Gillett wrote:

    > > If the client is configured to do passive transfers, the
    > > client will use the connection requests for both the control
    > > and data connections. That means, you won't need to allow
    > > incoming connection requests to hosts inside your network.
    > > I think it's the best option.
    > Which is "best" depends on whether you're looking from the
    >client side or the server side, and what kind of border security
    >you have at each end.
    > If you have stateful firewalls with FTP fixup, they can listen
    >to the FTP control conversation and permit the requested data
    >connections as needed -- and this is true regardless of which
    >direction wants to open the data connection.

    This requieres more processing in the firewall, though.
    Because the PORT command must be "patched" in the stream, it may be the
    case that the firewall not only needs to recalculate TCP's checksum, but
    may have to "recalculate" the sequence numbers, too. (The "patched" PORT
    command might be longer or shorter than the original one).

    > If you rely on packet filters, either the client side or the
    >server side has to allow arbitrary data connections to be opened.
    >The only closure of this hole you can implement is that if the
    >server opens the data connection ("active" mode), the source port
    >number will be 20. [In "Hacking Exposed", there's passing reference
    >to doing a pen-test against a network that would permit any
    >connection sourced from port 20; this is why it was configured that
    >way.]

    Sorry, I didn't understand that part where you said "this is why it was
    configured that way".

    > It isn't that passive mode is "better" than or "more secure" than
    >(boy, have I heard that one claimed a lot of times!) active mode; it's
    >that if you're not using stateful firewalls that know about FTP,
    >passive mode dumps all the risk on the server instead of the clients.

    It's probably more easy to configure the FTP server to use some specified
    port range (and thus allow incoming connections on only those ports) than
    configure *all* the clients that want to access your FTP site in a similar way.

    BTW, the FTP server was external to his organization, so... why should
    *him* take the risk?

    Best Regards,

    --
    Fernando Gont
    e-mail: fernando@gont.com.ar || fgont@acm.org
    ---------------------------------------------------------------------------
    Ethical Hacking at InfoSec Institute. Mention this ad and get $720 off any 
    course! All of our class sizes are guaranteed to be 10 students or less. 
    We provide Ethical Hacking, Advanced Ethical Hacking, Intrusion Prevention, 
    and many other technical hands on courses. 
    Visit us at http://www.infosecinstitute.com/securityfocus to get $720 off 
    any course!  
    ----------------------------------------------------------------------------
    

  • Next message: Ho Chaw Ming: "Re: Domain HiJacking by SPAMMERS"

    Relevant Pages

    • Re: Telnet/ftp problems SBS2000
      ... | through the server to get internet access everything works. ... | client uses an internet backup company to backup his really vital data, ... I understand that you cannot use ftp service to ... the connection can be established ...
      (microsoft.public.windows.server.sbs)
    • RE: Telnet/ftp problems SBS2000
      ... Please make sure your client computers are configured as both Firewall ... will find two options "Enable folder view for FTP sites" and "Use Passive ... that the control connection has been successfully established, ... (other than port 21) ...
      (microsoft.public.windows.server.sbs)
    • Re: Telnet/ftp problems SBS2000
      ... the client became desperate so we had to find a ... the software communicates on port 308. ... So I don't really know if telnet or ftp ... the connection can be established ...
      (microsoft.public.windows.server.sbs)
    • Re: FTP - Put Error - EZA2590E
      ... means that the FTP data connection between the z/OS client and the UNIX ... The FTP client has issued a socket call and received an error ... Now you need to follow the reference to "z/OS Language Environment Run-Time ...
      (bit.listserv.ibm-main)
    • Re: Bug with W2K3, SP1, Windows Firewall and FTP
      ... I have firewall enable and I can connect fine. ... the port 21 connection for some reasons. ... The client then gets the ... the FTP sessions (using the command ...
      (microsoft.public.inetserver.iis.ftp)