Re: [ftpext] Review of FTP HOSTS draft

Robert McMurray <robmcm@microsoft.com> Wed, 14 March 2012 05:49 UTC

Return-Path: <robmcm@microsoft.com>
X-Original-To: ftpext@ietfa.amsl.com
Delivered-To: ftpext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1AABA21F8564 for <ftpext@ietfa.amsl.com>; Tue, 13 Mar 2012 22:49:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.467
X-Spam-Level:
X-Spam-Status: No, score=-0.467 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, UNRESOLVED_TEMPLATE=3.132]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8tr3HiqkjnNs for <ftpext@ietfa.amsl.com>; Tue, 13 Mar 2012 22:48:59 -0700 (PDT)
Received: from db3outboundpool.messaging.microsoft.com (db3ehsobe006.messaging.microsoft.com [213.199.154.144]) by ietfa.amsl.com (Postfix) with ESMTP id 6C6B321F8562 for <ftpext@ietf.org>; Tue, 13 Mar 2012 22:48:58 -0700 (PDT)
Received: from mail101-db3-R.bigfish.com (10.3.81.241) by DB3EHSOBE002.bigfish.com (10.3.84.22) with Microsoft SMTP Server id 14.1.225.23; Wed, 14 Mar 2012 05:48:59 +0000
Received: from mail101-db3 (localhost [127.0.0.1]) by mail101-db3-R.bigfish.com (Postfix) with ESMTP id 591354A0373 for <ftpext@ietf.org>; Wed, 14 Mar 2012 05:48:59 +0000 (UTC)
X-SpamScore: -50
X-BigFish: VS-50(zzbb2dI9371I1b0bM542M1432N98dK4015I111aI148cM179cMzz1202h1082kzz1033IL8275bh8275dhz2fh2a8h683h839hd25h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail101-db3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=robmcm@microsoft.com; helo=TK5EX14MLTC102.redmond.corp.microsoft.com ; icrosoft.com ;
Received: from mail101-db3 (localhost.localdomain [127.0.0.1]) by mail101-db3 (MessageSwitch) id 1331704137587872_7065; Wed, 14 Mar 2012 05:48:57 +0000 (UTC)
Received: from DB3EHSMHS002.bigfish.com (unknown [10.3.81.232]) by mail101-db3.bigfish.com (Postfix) with ESMTP id 81A0F100048 for <ftpext@ietf.org>; Wed, 14 Mar 2012 05:48:57 +0000 (UTC)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.8) by DB3EHSMHS002.bigfish.com (10.3.87.102) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 14 Mar 2012 05:48:56 +0000
Received: from va3outboundpool.messaging.microsoft.com (157.54.51.114) by mail.microsoft.com (157.54.79.180) with Microsoft SMTP Server (TLS) id 14.2.283.4; Wed, 14 Mar 2012 05:48:52 +0000
Received: from mail183-va3-R.bigfish.com (10.7.14.244) by VA3EHSOBE010.bigfish.com (10.7.40.12) with Microsoft SMTP Server id 14.1.225.22; Wed, 14 Mar 2012 05:48:53 +0000
Received: from mail183-va3 (localhost [127.0.0.1]) by mail183-va3-R.bigfish.com (Postfix) with ESMTP id B7C58260165 for <ftpext@ietf.org.FOPE.CONNECTOR.OVERRIDE>; Wed, 14 Mar 2012 05:48:53 +0000 (UTC)
Received: from mail183-va3 (localhost.localdomain [127.0.0.1]) by mail183-va3 (MessageSwitch) id 1331704128334377_11875; Wed, 14 Mar 2012 05:48:48 +0000 (UTC)
Received: from VA3EHSMHS002.bigfish.com (unknown [10.7.14.250]) by mail183-va3.bigfish.com (Postfix) with ESMTP id 4B60E100134; Wed, 14 Mar 2012 05:48:48 +0000 (UTC)
Received: from CH1PRD0310HT005.namprd03.prod.outlook.com (157.56.244.37) by VA3EHSMHS002.bigfish.com (10.7.99.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 14 Mar 2012 05:48:47 +0000
Received: from CH1PRD0310MB391.namprd03.prod.outlook.com ([169.254.4.104]) by CH1PRD0310HT005.namprd03.prod.outlook.com ([10.255.137.40]) with mapi id 14.16.0123.000; Wed, 14 Mar 2012 05:48:45 +0000
From: Robert McMurray <robmcm@microsoft.com>
To: Anthony Bryan <anthonybryan@gmail.com>, Paul Ford-Hutchinson <paulfordh@uk.ibm.com>, "ftpext@ietf.org" <ftpext@ietf.org>
Thread-Topic: [ftpext] Review of FTP HOSTS draft
Thread-Index: AQHNASMcg4ZtTdf/DkyeggS/LEFc05ZpSDMw
Date: Wed, 14 Mar 2012 05:48:44 +0000
Message-ID: <01AA9EC92749BF4894AC2B3039EA4A2C303A154C@CH1PRD0310MB391.namprd03.prod.outlook.com>
References: <CANqTPeiid++rpn1H8yELmeQhG=XEwt8q5uTCiuifw82OOu8xjg@mail.gmail.com> <OF9010AA09.3E3DBA43-ON802579B1.0042EAD0-802579B1.0045D2EB@uk.ibm.com> <CANqTPehZEv4T96UHo0vvqeqzEbhZrO8prJ7mDt=HHji2NtN-=w@mail.gmail.com>
In-Reply-To: <CANqTPehZEv4T96UHo0vvqeqzEbhZrO8prJ7mDt=HHji2NtN-=w@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [131.107.192.233]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OrganizationHeadersPreserved: CH1PRD0310HT005.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%GMAIL.COM$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%UK.IBM.COM$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%IETF.ORG$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14MLTC102.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14MLTC102.redmond.corp.microsoft.com
X-OriginatorOrg: microsoft.com
Subject: Re: [ftpext] Review of FTP HOSTS draft
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Mar 2012 05:49:00 -0000

Thanks, Anthony.

As an FYI - I've been watching the WG discussions about the HOST draft, but I probably won't have a chance to offer up a rewritten draft for at least a few weeks due to pressing work-related priorities. (We all have to pay the bills somehow.)

Thanks again,
Robert McMurray

-----Original Message-----
From: Anthony Bryan [mailto:anthonybryan@gmail.com] 
Sent: Monday, March 12, 2012 10:24 PM
To: Paul Ford-Hutchinson
Cc: ftpext@ietf.org
Subject: Re: [ftpext] Review of FTP HOSTS draft

Paul, thanks for reading & reviewing the review!

On Mon, Feb 27, 2012 at 7:42 AM, Paul Ford-Hutchinson <paulfordh@uk.ibm.com> wrote:
>
> Some comments ...
>
> ftpext-bounces@ietf.org wrote on 24/02/2012 23:20:48:
>
>
>
>> Alexey Melnikov was kind enough to review this draft but was not on 
>> the list so I am forwarding it for him.
>>
>> 1.  Introduction
>>
>>   This means that different virtual hosts cannot offer different
>>   virtual file systems to clients, nor can they offer different
>>   authentication systems.  Any scheme to overcome this issue needs to
>>   indicate not only the destination IP address, but also the virtual
>>   host name that is associated with the desired virtual FTP server.
>>   Typical user-FTP processes currently use hostnames to perform
>>   hostname to IP address resolution and then ignore hostnames for the
>>   rest of the FTP session, therefore any mechanism to overcome this
>>   issue would require modifications to the user-PI and server-PI.
>>
>> Minor: You should have references for terms like user-PI/server-PI 
>> the first time you reference them.
>
> [RFC959] ?

yes

>> In Section 3.2.2:
>>
>>   This is also true when the HOST command is used with the AUTH and
>>   ADAT commands that are discussed in [RFC2228] and [RFC4217].  In 
>> this
>>   scenario, the user-PI sends a HOST command which the server-PI uses
>>   to route activity to the correct virtual host, then the user-PI 
>> uses
>>   the AUTH and ADAT commands to negotiate the security mechanism and
>>   relevant authentication token(s) with the server-PI, then the 
>> user-PI
>>   sends user credentials using the USER and PASS commands which the
>>   server-PI validates.  After which the user-PI MAY send an ACCT
>>   command to specify any additional account information for the
>>   server-PI implementation.  The following example illustrates a
>>   sequential series of client commands that specify both a HOST and
>>   ACCT when used in conjunction with the security commands that are
>>   discussed in [RFC2228] and [RFC4217], with the server responses
>>   omitted for brevity:
>>
>>        C> HOST ftp.example.com
>>        C> AUTH <mechanism-name>
>>        C> ADAT <base64data>
>>        C> USER foo
>>        C> PASS bar
>>        C> ACCT project1
>>
>> Is USER/PASS actually required after ADAT? (Just asking)
>
> according to the various RFCs; ADAT, USER and PASS are all optional.  
> This is just an elaboration of what was already in [RFC2228].

maybe that is worth clarifying? (as below)

>> 3.3.  HOST command errors
>>
>>   The server-PI SHOULD reply with a 500 or 502 reply if the HOST
>>   command is unrecognized or unimplemented.
>>
>> This requirement is strange: you are either making a requirement on 
>> an implementation which doesn't support this specification (and thus 
>> you can't do that), or you are saying that an implementation can 
>> recognize but not implement the HOST command which seems pointless.
>> I suggest deleting this sentence (or clarify its purpose).
>
> It does appear that this is just explicitly restating the standard FTP 
> responses.

yes, perhaps taking a cue from RFC 3659 would be good (some of my drafts need this change as well):

"Where the command cannot be correctly parsed, a 500 or 501 reply should be sent, as specified in RFC 959."
...

7.2.1. Error Responses to MLSx commands

   Many of the 4xy and 5xy responses defined in section 4.2 of STD 9,
   RFC 959 are possible in response to the MLST and MLSD commands.
   In particular, syntax errors can generate 500 or 501 replies.  Giving
   a pathname that exists but is not a directory as the argument to a
   MLSD command generates a 501 reply.  Giving a name that does not
   exist, or for which access permission (to obtain directory
   information as requested) is not granted will elicit a 550 reply.
   Other replies (530, 553, 503, 504, and any of the 4xy replies) are
   also possible in appropriate circumstances.

>> In Section 4:
>>
>>   Section 15.1.1 of [RFC4217] discusses the use of X.509 certificates
>>   for server authentication.  Taking the information from that 
>> document
>>   into account, when securing FTP sessions with the security 
>> mechanisms
>>   that are defined in [RFC4217], client implementations SHOULD verify
>>   that the hostname they specify in the parameter for the HOST 
>> command
>>   matches the identity that is specified in the server's X.509
>>   certificate in order to prevent man-in-the-middle attacks.
>>
>> How can this verification can be achieved? Please either add the text 
>> (for example by referencing RFC 6125, I can help with wordsmithing), 
>> or add another appropriate reference here.
>
> RFC6125 does not discuss FTP.  I do not think that this document is a 
> suitable place for making that linkage by the back door.  (I am not 
> saying that FTP shouldn't be in RFC6125 - it probably should - but 
> that the introduction of the 'HOST' command is not the way to do it.)

we could ask Alexey what he thinks it should say, as he offered help with the text?

or...

> Can we push for an update to RFC6125 that does include FTP and then 
> reference it in here?

I'm not sure - asking other to do more work when this WG has not accomplished anything yet may step on some toes :)

perhaps filing an erratum with information to be "Held For Document Update"? that is, if there's a revision, it will include the info.

--
(( Anthony Bryan ... Metalink [ http://www.metalinker.org ]
  )) Easier, More Reliable, Self Healing Downloads