Bump versions.
[gsasl.git] / doc / specification / draft-ietf-sasl-anon-01.txt
blobc2fbd26009529f629e35aa38273b1440c5e58b14
7 INTERNET-DRAFT                           Editor: Kurt D. Zeilenga
8 Intended Category: Standards Track            OpenLDAP Foundation
9 Expires in six months                                  4 May 2003
10 Obsoletes: RFC 2245
13                        The Anonymous SASL Mechanism
14                       <draft-ietf-sasl-anon-01.txt>
17 Status of Memo
19   This document is an Internet-Draft and is in full conformance with all
20   provisions of Section 10 of RFC2026.
22   This document is intended to be, after appropriate review and
23   revision, submitted to the RFC Editor as a Standards Track document.
24   Distribution of this memo is unlimited.  Technical discussion of this
25   document will take place on the IETF SASL mailing list
26   <ietf-sasl@imc.org>.  Please send editorial comments directly to the
27   document editor <Kurt@OpenLDAP.org>.
29   Internet-Drafts are working documents of the Internet Engineering Task
30   Force (IETF), its areas, and its working groups.  Note that other
31   groups may also distribute working documents as Internet-Drafts.
32   Internet-Drafts are draft documents valid for a maximum of six months
33   and may be updated, replaced, or obsoleted by other documents at any
34   time.  It is inappropriate to use Internet-Drafts as reference
35   material or to cite them other than as ``work in progress.''
37   The list of current Internet-Drafts can be accessed at
38   <http://www.ietf.org/ietf/1id-abstracts.txt>. The list of
39   Internet-Draft Shadow Directories can be accessed at
40   <http://www.ietf.org/shadow.html>.
42   Copyright 2003, The Internet Society.  All Rights Reserved.
44   Please see the Copyright section near the end of this document for
45   more information.
48 Abstract
50   It is common practice on the Internet to permit anonymous access to
51   various services.  Traditionally, this has been done with a plain text
52   password mechanism using "anonymous" as the user name and optional
53   trace information, such as an email address, as the password.  As
54   plaintext login commands are not permitted in new IETF protocols, a
58 Zeilenga                Anonymous SASL Mechanism                [Page 1]
60 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
63   new way to provide anonymous login is needed within the context of the
64   Simple Authentication and Security Layer (SASL) framework.
67 Conventions
69   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
70   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
71   document are to be interpreted as described in [KEYWORDS].
74 1. Anonymous SASL mechanism
76   This document defines an anonymous mechanism for the Simple
77   Authentication and Security Layer ([SASL]) framework.  The name
78   associated with this mechanism is "ANONYMOUS".
80   This document replaces RFC 2245.  Changes since RFC 2245 are detailed
81   in Appendix A.
83   The mechanism consists of a single message from the client to the
84   server.  The client sends optional trace information in the form of a
85   string of [UTF-8] encoded [Unicode] characters prepared in accordance
86   with [Stringprep] and the "trace" stringprep profile defined in
87   Section 2 of this document.  The trace information, which as no
88   semantical value, should take one of three forms: an Internet email
89   address, an opaque string which does not contain the '@' (U+0040)
90   character and can be interpreted by the system administrator of the
91   client's domain, or nothing.  For privacy reasons, an Internet email
92   address or other information identifying the user should only be used
93   with permission from the user.
95   A server which permits anonymous access will announce support for the
96   ANONYMOUS mechanism, and allow anyone to log in using that mechanism,
97   usually with restricted access.
99   This mechanism does not provide a security layer.
101   A formal grammar for the client message using Augmented BNF [ABNF] is
102   provide below as a tool for understanding this technical
103   specification.
105       message     = [ email / token ]
106                        ;; MUST be prepared in accordance with Section 2
108       UTF1        = %x00-3F / %x41-7F ;; less '@' (U+0040)
109       UTF2        = %xC2-DF UTF0
110       UTF3        = %xE0 %xA0-BF UTF0 / %xE1-EC 2(UTF0) /
114 Zeilenga                Anonymous SASL Mechanism                [Page 2]
116 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
119                     %xED %x80-9F UTF0 / %xEE-EF 2(UTF0)
120       UTF4        = %xF0 %x90-BF 2(UTF0) / %xF1-F3 3(UTF0) /
121                     %xF4 %x80-8F 2(UTF0)
122       UTF0        = %x80-BF
124       TCHAR       = UTF1 / UTF2 / UTF3 / UTF4
125                     ;; any UTF-8 encoded Unicode character
126                     ;; except '@' (U+0040)
128       email       = addr-spec
129                     ;; as defined in [IMAIL], except with no free
130                     ;; insertion of linear-white-space, and the
131                     ;; local-part MUST either be entirely enclosed in
132                     ;; quotes or entirely unquoted
134       token       = 1*255TCHAR
136       Note to implementors:
137       The <token> production is restricted to 255 UTF-8 encoded Unicode
138       characters.   As the encoding of a characters use a sequence of 1
139       to 4 octets, a token may be long as 1020 octets.
142 2. The "trace" profile of "Stringprep"
144   This section defines the "trace" profile of [Stringprep].  This
145   profile is designed for use with the SASL ANONYMOUS Mechanism.
146   Specifically, the client MUST prepare the <message> production in
147   accordance with this profile.
149   The character repertoire of this profile is Unicode 3.2 [Unicode].
151   No mapping is required by this profile.
153   No Unicode normalization is required by this profile.
155   The list of unassigned code points for this profile is that provided
156   in appendix A of [RFC 3454].  Unassigned code points are not
157   prohibited.
159   Characters from the following tables of [Stringprep] are prohibited:
160       - C.2.1 (ASCII control characters)
161       - C.2.2 (Non-ASCII control characters)
162       - C.3 (Private use characters)
163       - C.4 (Non-character code points)
164       - C.5 (Surrogate codes)
165       - C.6 (Inappropriate for plain text)
166       - C.8 (Change display properties are deprecated)
170 Zeilenga                Anonymous SASL Mechanism                [Page 3]
172 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
175       - C.9 (Tagging characters)
177   No additional characters are prohibited.
179   This profile requires bidirectional character checking per Section 6
180   of [Stringprep].
183 3. Example
185   Here is a sample ANONYMOUS login between an IMAP client and server.
186   In this example, "C:" and "S:" indicate lines sent by the client and
187   server respectively.  If such lines are wrapped without a new "C:" or
188   "S:" label, then the wrapping is for editorial clarity and is not part
189   of the command.
191   Note that this example uses the IMAP profile [IMAP4] of SASL.  The
192   base64 encoding of challenges and responses, as well as the "+ "
193   preceding the responses are part of the IMAP4 profile, not part of
194   SASL itself.  Newer profiles of SASL will include the client message
195   with the AUTHENTICATE command itself so the extra round trip below
196   (the server response with an empty "+ ") can be eliminated.
198   In this example, the user's opaque identification token is "sirhc".
200       S: * OK IMAP4 server ready
201       C: A001 CAPABILITY
202       S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=DIGEST-MD5 AUTH=ANONYMOUS
203       S: A001 OK done
204       C: A002 AUTHENTICATE ANONYMOUS
205       S: +
206       C: c2lyaGM=
207       S: A003 OK Welcome, trace information has been logged.
210 4. Security Considerations
212   The ANONYMOUS mechanism grants access to information by anyone.  For
213   this reason it should be disabled by default so the administrator can
214   make an explicit decision to enable it.
216   If the anonymous user has any write privileges, a denial of service
217   attack is possible by filling up all available space.  This can be
218   prevented by disabling all write access by anonymous users.
220   If anonymous users have read and write access to the same area, the
221   server can be used as a communication mechanism to anonymously
222   exchange information.  Servers which accept anonymous submissions
226 Zeilenga                Anonymous SASL Mechanism                [Page 4]
228 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
231   should implement the common "drop box" model which forbids anonymous
232   read access to the area where anonymous submissions are accepted.
234   If the anonymous user can run many expensive operations (e.g., an IMAP
235   SEARCH BODY command), this could enable a denial of service attack.
236   Servers are encouraged to reduce the priority of anonymous users or
237   limit their resource usage.
239   While servers may impose a limit on the number of anonymous users, it
240   is noted that such limits enable denial of service attacks and should
241   be used with caution.
243   The trace information is not authenticated so it can be falsified.
244   This can be used as an attempt to get someone else in trouble for
245   access to questionable information.  Administrators trying to trace
246   abuse need to realize this information may be falsified.
248   A client which uses the user's correct email address as trace
249   information without explicit permission may violate that user's
250   privacy.  Information about who accesses an anonymous archive on a
251   sensitive subject (e.g., sexual abuse) has strong privacy needs.
252   Clients should not send the email address without explicit permission
253   of the user and should offer the option of supplying no trace token --
254   thus only exposing the source IP address and time.  Anonymous proxy
255   servers could enhance this privacy, but would have to consider the
256   resulting potential denial of service attacks.
258   Anonymous connections are susceptible to man in the middle attacks
259   which view or alter the data transferred.  Clients and servers are
260   encouraged to support external integrity and encryption mechanisms.
262   Protocols which fail to require an explicit anonymous login are more
263   susceptible to break-ins given certain common implementation
264   techniques.  Specifically, Unix servers which offer user login may
265   initially start up as root and switch to the appropriate user id after
266   an explicit login command.  Normally such servers refuse all data
267   access commands prior to explicit login and may enter a restricted
268   security environment (e.g., the Unix chroot(2) function) for anonymous
269   users.  If anonymous access is not explicitly requested, the entire
270   data access machinery is exposed to external security attacks without
271   the chance for explicit protective measures.  Protocols which offer
272   restricted data access should not allow anonymous data access without
273   an explicit login step.
275   General [SASL] security considerations apply to this mechanism.
277   [Stringprep] security considerations as well as [Unicode] security
278   considerations discussed in [Stringprep] apply to this mechanism.
282 Zeilenga                Anonymous SASL Mechanism                [Page 5]
284 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
287   [UTF-8] security considerations also apply.
290 5. IANA Considerations
292   It is requested that the SASL Mechanism registry [IANA-SASL] entry for
293   the ANONYMOUS mechanism be updated to reflect that this document now
294   provides its technical specification.
296       To: iana@iana.org
297       Subject: Updated Registration of SASL mechanism ANONYMOUS
299       SASL mechanism name: ANONYMOUS
300       Security considerations: See RFC XXXX.
301       Published specification (optional, recommended): RFC XXXX
302       Person & email address to contact for further information:
303            Kurt Zeilenga <kurt@openldap.org>
304            Chris Neuman <chris.newman@innosoft.com>
305       Intended usage: COMMON
306       Author/Change controller: IESG <iesg@ietf.org>
307       Note: Updates existing entry for ANONYMOUS
309   It is requested that the "stringprep" [RFC3454] profile "trace", first
310   defined in this RFC, be registered:
312       To: iana@iana.org
313       Subject: Initial Registration of Stringprep "trace" profile
315       Stringprep profile: trace
316       Published specification: RFC XXXX
317       Person & email address to contact for further information:
318           Kurt Zeilenga <kurt@openldap.org>
321 6. Acknowledgment
323   This document is a revision of RFC 2245 by Chris Newman.  Portions of
324   the grammar defined in Section 1 were borrowed from [UTF-8] by
325   Francois Yergeau.
328 7. Normative References
330   [ABNF]       Crocker, D. and P. Overell, "Augmented BNF for Syntax
331                Specifications: ABNF", RFC 2234, November 1997.
333   [IMAIL]      Crocker, D., "Standard for the Format of Arpa Internet
334                Text Messages", STD 11, RFC 822, August 1982.
338 Zeilenga                Anonymous SASL Mechanism                [Page 6]
340 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
343   [KEYWORDS]   Bradner, S., "Key words for use in RFCs to Indicate
344                Requirement Levels", BCP 14, RFC 2119, March 1997
346   [SASL]       J. Myers, "Simple Authentication and Security Layer
347                (SASL)", RFC 2222bis (a work in progress).
349   [Stringprep] P. Hoffman, M. Blanchet, "Preparation of
350                Internationalized Strings ('stringprep')", RFC 3454,
351                December 2002.
353   [Unicode]    The Unicode Consortium. The Unicode Standard, Version
354                3.2.0 is defined by The Unicode Standard, Version 3.0
355                (Reading, MA, Addison-Wesley, 2000. ISBN 0-201-61633-5),
356                as amended by the Unicode Standard Annex #27: Unicode 3.1
357                (http://www.unicode.org/reports/tr27/) and by the Unicode
358                Standard Annex #28: Unicode 3.2
359                (http://www.unicode.org/reports/tr28/).
361   [UTF-8]      Yergeau, F., "UTF-8, a transformation format of ISO
362                10646", draft-yergeau-rfc2279bis (a work in progress).
365 8. Informative References
367   [IMAP4]      Crispin, M., "Internet Message Access Protocol - Version
368                4rev1", RFC 2060, December 1996.
370   [IANA-SASL]  IANA, "SIMPLE AUTHENTICATION AND SECURITY LAYER (SASL)
371                MECHANISMS", http://www.iana.org/assignments/sasl-
372                mechanisms.
375 9. Editor's Address
377   Kurt Zeilenga
378   OpenLDAP Foundation
380   Email: kurt@OpenLDAP.org
383 Appendix A.  Changes since RFC 2245
385   This appendix is non-normative.
387   RFC 2245 allows the client to send optional trace information in the
388   form of a human readable string.  RFC 2245 restricted this string to
389   US-ASCII.  As the Internet is international, this document uses a
390   string restricted to UTF-8 encoded Unicode characters.  A "stringprep"
394 Zeilenga                Anonymous SASL Mechanism                [Page 7]
396 INTERNET-DRAFT         draft-ietf-sasl-anon-01.txt            4 May 2003
399   profile is defined to precisely define which Unicode characters are
400   allowed in this string.  While the string remains restricted to 255
401   characters, the encoded length of each character may now range from 1
402   to 4 octets.
404   Additionally, a number of editorial changes were made.
407 Full Copyright Statement
409   Copyright 2003, The Internet Society.  All Rights Reserved.
411   This document and translations of it may be copied and furnished to
412   others, and derivative works that comment on or otherwise explain it
413   or assist in its implementation may be prepared, copied, published and
414   distributed, in whole or in part, without restriction of any kind,
415   provided that the above copyright notice and this paragraph are
416   included on all such copies and derivative works.  However, this
417   document itself may not be modified in any way, such as by removing
418   the copyright notice or references to the Internet Society or other
419   Internet organizations, except as needed for the  purpose of
420   developing Internet standards in which case the procedures for
421   copyrights defined in the Internet Standards process must be followed,
422   or as required to translate it into languages other than English.
424   The limited permissions granted above are perpetual and will not be
425   revoked by the Internet Society or its successors or assigns.
427   This document and the information contained herein is provided on an
428   "AS IS" basis and THE AUTHORS, THE INTERNET SOCIETY, AND THE INTERNET
429   ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
430   INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
431   INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
432   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
450 Zeilenga                Anonymous SASL Mechanism                [Page 8]