1 2 3 4 5 6 7 Network Working Group P. Hoffman 8 Request for Comments: 3491 IMC & VPNC 9 Category: Standards Track M. Blanchet 10 Viagenie 11 March 2003 12 13 14 Nameprep: A Stringprep Profile for 15 Internationalized Domain Names (IDN) 16 17 Status of this Memo 18 19 This document specifies an Internet standards track protocol for the 20 Internet community, and requests discussion and suggestions for 21 improvements. Please refer to the current edition of the "Internet 22 Official Protocol Standards" (STD 1) for the standardization state 23 and status of this protocol. Distribution of this memo is unlimited. 24 25 Copyright Notice 26 27 Copyright (C) The Internet Society (2003). All Rights Reserved. 28 29 Abstract 30 31 This document describes how to prepare internationalized domain name 32 (IDN) labels in order to increase the likelihood that name input and 33 name comparison work in ways that make sense for typical users 34 throughout the world. This profile of the stringprep protocol is 35 used as part of a suite of on-the-wire protocols for 36 internationalizing the Domain Name System (DNS). 37 38 1. Introduction 39 40 This document specifies processing rules that will allow users to 41 enter internationalized domain names (IDNs) into applications and 42 have the highest chance of getting the content of the strings 43 correct. It is a profile of stringprep [STRINGPREP]. These 44 processing rules are only intended for internationalized domain 45 names, not for arbitrary text. 46 47 This profile defines the following, as required by [STRINGPREP]. 48 49 - The intended applicability of the profile: internationalized 50 domain names processed by IDNA. 51 52 - The character repertoire that is the input and output to 53 stringprep: Unicode 3.2, specified in section 2. 54 55 56 57 58 Hoffman & Blanchet Standards Track [Page 1] 59 61 RFC 3491 IDN Nameprep March 2003 62 63 64 - The mappings used: specified in section 3. 65 66 - The Unicode normalization used: specified in section 4. 67 68 - The characters that are prohibited as output: specified in section 69 5. 70 71 - Bidirectional character handling: specified in section 6. 72 73 1.1 Interaction of protocol parts 74 75 Nameprep is used by the IDNA [IDNA] protocol for preparing domain 76 names; it is not designed for any other purpose. It is explicitly 77 not designed for processing arbitrary free text and SHOULD NOT be 78 used for that purpose. Nameprep is a profile of Stringprep 79 [STRINGPREP]. Implementations of Nameprep MUST fully implement 80 Stringprep. 81 82 Nameprep is used to process domain name labels, not domain names. 83 IDNA calls nameprep for each label in a domain name, not for the 84 whole domain name. 85 86 1.2 Terminology 87 88 The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY" 89 in this document are to be interpreted as described in BCP 14, RFC 90 2119 [RFC2119]. 91 92 2. Character Repertoire 93 94 This profile uses Unicode 3.2, as defined in [STRINGPREP] Appendix A. 95 96 3. Mapping 97 98 This profile specifies mapping using the following tables from 99 [STRINGPREP]: 100 101 Table B.1 102 Table B.2 103 104 4. Normalization 105 106 This profile specifies using Unicode normalization form KC, as 107 described in [STRINGPREP]. 108 109 110 111 112 113 114 115 Hoffman & Blanchet Standards Track [Page 2] 116 118 RFC 3491 IDN Nameprep March 2003 119 120 121 5. Prohibited Output 122 123 This profile specifies prohibiting using the following tables from 124 [STRINGPREP]: 125 126 Table C.1.2 127 Table C.2.2 128 Table C.3 129 Table C.4 130 Table C.5 131 Table C.6 132 Table C.7 133 Table C.8 134 Table C.9 135 136 IMPORTANT NOTE: This profile MUST be used with the IDNA protocol. 137 The IDNA protocol has additional prohibitions that are checked 138 outside of this profile. 139 140 6. Bidirectional characters 141 142 This profile specifies checking bidirectional strings as described in 143 [STRINGPREP] section 6. 144 145 7. Unassigned Code Points in Internationalized Domain Names 146 147 If the processing in [IDNA] specifies that a list of unassigned code 148 points be used, the system uses table A.1 from [STRINGPREP] as its 149 list of unassigned code points. 150 151 8. References 152 153 8.1 Normative References 154 155 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 156 Requirement Levels", BCP 14, RFC 2119, March 1997. 157 158 [STRINGPREP] Hoffman, P. and M. Blanchet, "Preparation of 159 Internationalized Strings ("stringprep")", RFC 3454, 160 December 2002. 161 162 [IDNA] Faltstrom, P., Hoffman, P. and A. Costello, 163 "Internationalizing Domain Names in Applications 164 (IDNA)", RFC 3490, March 2003. 165 166 167 168 169 170 171 172 Hoffman & Blanchet Standards Track [Page 3] 173 175 RFC 3491 IDN Nameprep March 2003 176 177 178 8.2 Informative references 179 180 [STD13] Mockapetris, P., "Domain names - concepts and 181 facilities", STD 13, RFC 1034, and "Domain names - 182 implementation and specification", STD 13, RFC 1035, 183 November 1987. 184 185 9. Security Considerations 186 187 The Unicode and ISO/IEC 10646 repertoires have many characters that 188 look similar. In many cases, users of security protocols might do 189 visual matching, such as when comparing the names of trusted third 190 parties. Because it is impossible to map similar-looking characters 191 without a great deal of context such as knowing the fonts used, 192 stringprep does nothing to map similar-looking characters together 193 nor to prohibit some characters because they look like others. 194 195 Security on the Internet partly relies on the DNS. Thus, any change 196 to the characteristics of the DNS can change the security of much of 197 the Internet. 198 199 Domain names are used by users to connect to Internet servers. The 200 security of the Internet would be compromised if a user entering a 201 single internationalized name could be connected to different servers 202 based on different interpretations of the internationalized domain 203 name. 204 205 Current applications might assume that the characters allowed in 206 domain names will always be the same as they are in [STD13]. This 207 document vastly increases the number of characters available in 208 domain names. Every program that uses "special" characters in 209 conjunction with domain names may be vulnerable to attack based on 210 the new characters allowed by this specification. 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 Hoffman & Blanchet Standards Track [Page 4] 230 232 RFC 3491 IDN Nameprep March 2003 233 234 235 10. IANA Considerations 236 237 This is a profile of stringprep. It has been registered by the IANA 238 in the stringprep profile registry 239 (www.iana.org/assignments/stringprep-profiles). 240 241 Name of this profile: 242 Nameprep 243 244 RFC in which the profile is defined: 245 This document. 246 247 Indicator whether or not this is the newest version of the 248 profile: 249 This is the first version of Nameprep. 250 251 11. Acknowledgements 252 253 Many people from the IETF IDN Working Group and the Unicode Technical 254 Committee contributed ideas that went into this document. 255 256 The IDN Nameprep design team made many useful changes to the 257 document. That team and its advisors include: 258 259 Asmus Freytag 260 Cathy Wissink 261 Francois Yergeau 262 James Seng 263 Marc Blanchet 264 Mark Davis 265 Martin Duerst 266 Patrik Faltstrom 267 Paul Hoffman 268 269 Additional significant improvements were proposed by: 270 271 Jonathan Rosenne 272 Kent Karlsson 273 Scott Hollenbeck 274 Dave Crocker 275 Erik Nordmark 276 Matitiahu Allouche 277 278 279 280 281 282 283 284 285 286 Hoffman & Blanchet Standards Track [Page 5] 287 289 RFC 3491 IDN Nameprep March 2003 290 291 292 12. Authors' Addresses 293 294 Paul Hoffman 295 Internet Mail Consortium and VPN Consortium 296 127 Segre Place 297 Santa Cruz, CA 95060 USA 298 299 EMail: paul.hoffman (a] imc.org and paul.hoffman (a] vpnc.org 300 301 302 Marc Blanchet 303 Viagenie inc. 304 2875 boul. Laurier, bur. 300 305 Ste-Foy, Quebec, Canada, G1V 2M2 306 307 EMail: Marc.Blanchet (a] viagenie.qc.ca 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 Hoffman & Blanchet Standards Track [Page 6] 344 346 RFC 3491 IDN Nameprep March 2003 347 348 349 13. Full Copyright Statement 350 351 Copyright (C) The Internet Society (2003). All Rights Reserved. 352 353 This document and translations of it may be copied and furnished to 354 others, and derivative works that comment on or otherwise explain it 355 or assist in its implementation may be prepared, copied, published 356 and distributed, in whole or in part, without restriction of any 357 kind, provided that the above copyright notice and this paragraph are 358 included on all such copies and derivative works. However, this 359 document itself may not be modified in any way, such as by removing 360 the copyright notice or references to the Internet Society or other 361 Internet organizations, except as needed for the purpose of 362 developing Internet standards in which case the procedures for 363 copyrights defined in the Internet Standards process must be 364 followed, or as required to translate it into languages other than 365 English. 366 367 The limited permissions granted above are perpetual and will not be 368 revoked by the Internet Society or its successors or assigns. 369 370 This document and the information contained herein is provided on an 371 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 372 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 373 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 374 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 375 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 376 377 Acknowledgement 378 379 Funding for the RFC Editor function is currently provided by the 380 Internet Society. 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 Hoffman & Blanchet Standards Track [Page 7] 401 403