draft-ietf-dnsext-nsec3-04.txt

来自「非常好的dns解析软件」· 文本 代码 · 共 1,567 行 · 第 1/5 页

TXT
1,567 行
字号
   and should, therefore, return a response with an RCODE of 2 (server   failure).Laurie, et al.           Expires August 5, 2006                [Page 17]Internet-Draft                    nsec3                    February 20068.4.5.  Parameters that Cover the Zone   Secondary servers (and perhaps other entities) need to reliably   determine which NSEC3 parameters (that is, hash, salt and iterations)   are present at every hashed ownername, in order to be able to choose   an appropriate set of NSEC3 records for negative responses.  This is   indicated by the parameters at the apex: any set of parameters that   is used in an NSEC3 record whose original ownername is the apex of   the zone MUST be present throughout the zone.   A method to determine which NSEC3 in a complete chain corresponds to   the apex is to look for a NSEC3 RRset which has the SOA bit set in   the RDATA bit type maps field.9.  Performance Considerations   Iterated hashes impose a performance penalty on both authoritative   servers and resolvers.  Therefore, the number of iterations should be   carefully chosen.  In particular it should be noted that a high value   for iterations gives an attacker a very good denial of service   attack, since the attacker need not bother to verify the results of   their queries, and hence has no performance penalty of his own.   On the other hand, nameservers with low query rates and limited   bandwidth are already subject to a bandwidth based denial of service   attack, since responses are typically an order of magnitude larger   than queries, and hence these servers may choose a high value of   iterations in order to increase the difficulty of offline attempts to   enumerate their namespace without significantly increasing their   vulnerability to denial of service attacks.10.  IANA Considerations   IANA needs to allocate a RR type code for NSEC3 from the standard RR   type space (type XXX requested).  IANA needs to open a new registry   for the NSEC3 Hash Functions.  The range for this registry is 0-127.   Defined types are:      0 is reserved.      1 is SHA-1 ([13]).      127 is experimental.11.  Security Considerations   The NSEC3 records are still susceptible to dictionary attacks (i.e.Laurie, et al.           Expires August 5, 2006                [Page 18]Internet-Draft                    nsec3                    February 2006   the attacker retrieves all the NSEC3 records, then calculates the   hashes of all likely domain names, comparing against the hashes found   in the NSEC3 records, and thus enumerating the zone).  These are   substantially more expensive than enumerating the original NSEC   records would have been, and in any case, such an attack could also   be used directly against the name server itself by performing queries   for all likely names, though this would obviously be more detectable.   The expense of this off-line attack can be chosen by setting the   number of iterations in the NSEC3 RR.   Domains are also susceptible to a precalculated dictionary attack -   that is, a list of hashes for all likely names is computed once, then   NSEC3 is scanned periodically and compared against the precomputed   hashes.  This attack is prevented by changing the salt on a regular   basis.   Walking the NSEC3 RRs will reveal the total number of records in the   zone, and also what types they are.  This could be mitigated by   adding dummy entries, but certainly an upper limit can always be   found.   Hash collisions may occur.  If they do, it will be impossible to   prove the non-existence of the colliding domain - however, this is   fantastically unlikely, and, in any case, DNSSEC already relies on   SHA-1 to not collide.   Responses to queries where QNAME equals an NSEC3 ownername that has   no other types may be undetectably changed from a NOERROR/NODATA   response to a NAME ERROR response.   The Opt-In Flag (O) allows for unsigned names, in the form of   delegations to unsigned subzones, to exist within an otherwise signed   zone.  All unsigned names are, by definition, insecure, and their   validity or existence cannot by cryptographically proven.   In general:      Records with unsigned names (whether existing or not) suffer from      the same vulnerabilities as records in an unsigned zone.  These      vulnerabilities are described in more detail in [16] (note in      particular sections 2.3, "Name Games" and 2.6, "Authenticated      Denial").      Records with signed names have the same security whether or not      Opt-In is used.   Note that with or without Opt-In, an insecure delegation may be   undetectably altered by an attacker.  Because of this, the primary   difference in security when using Opt-In is the loss of the ability   to prove the existence or nonexistence of an insecure delegationLaurie, et al.           Expires August 5, 2006                [Page 19]Internet-Draft                    nsec3                    February 2006   within the span of an Opt-In NSEC3 record.   In particular, this means that a malicious entity may be able to   insert or delete records with unsigned names.  These records are   normally NS records, but this also includes signed wildcard   expansions (while the wildcard record itself is signed, its expanded   name is an unsigned name).   For example, if a resolver received the following response from the   example zone above:   Example S.1: Response to query for WWW.DOES-NOT-EXIST.EXAMPLE.  A           RCODE=NOERROR           Answer Section:           Authority Section:           DOES-NOT-EXIST.EXAMPLE. NS     NS.FORGED.           EXAMPLE.                NSEC   FIRST-SECURE.EXAMPLE. SOA NS \                                          RRSIG DNSKEY           abcd...                 RRSIG  NSEC3 ...           Additional Section:   The resolver would have no choice but to accept that the referral to   NS.FORGED. is valid.  If a wildcard existed that would have been   expanded to cover "WWW.DOES-NOT-EXIST.EXAMPLE.", an attacker could   have undetectably removed it and replaced it with the forged   delegation.   Note that being able to add a delegation is functionally equivalent   to being able to add any record type: an attacker merely has to forge   a delegation to nameserver under his/her control and place whatever   records needed at the subzone apex.   While in particular cases, this issue may not present a significant   security problem, in general it should not be lightly dismissed.   Therefore, it is strongly RECOMMENDED that Opt-In be used sparingly.   In particular, zone signing tools SHOULD NOT default to using Opt-In,   and MAY choose to not support Opt-In at all.12.  ReferencesLaurie, et al.           Expires August 5, 2006                [Page 20]Internet-Draft                    nsec3                    February 200612.1.  Normative References   [1]   Mockapetris, P., "Domain names - concepts and facilities",         STD 13, RFC 1034, November 1987.   [2]   Mockapetris, P., "Domain names - implementation and         specification", STD 13, RFC 1035, November 1987.   [3]   Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose,         "DNS Security Introduction and Requirements", RFC 4033,         March 2005.   [4]   Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose,         "Resource Records for the DNS Security Extensions", RFC 4034,         March 2005.   [5]   Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose,         "Protocol Modifications for the DNS Security Extensions",         RFC 4035, March 2005.   [6]   Vixie, P., Thomson, S., Rekhter, Y., and J. Bound, "Dynamic         Updates in the Domain Name System (DNS UPDATE)", RFC 2136,         April 1997.   [7]   Elz, R. and R. Bush, "Clarifications to the DNS Specification",         RFC 2181, July 1997.   [8]   Andrews, M., "Negative Caching of DNS Queries (DNS NCACHE)",         RFC 2308, March 1998.   [9]   Bradner, S., "Key words for use in RFCs to Indicate Requirement         Levels", BCP 14, RFC 2119, March 1997.   [10]  Gudmundsson, O., "Delegation Signer (DS) Resource Record (RR)",         RFC 3658, December 2003.   [11]  Eastlake, D., Brunner-Williams, E., and B. Manning, "Domain         Name System (DNS) IANA Considerations", BCP 42, RFC 2929,         September 2000.   [12]  Gustafsson, A., "Handling of Unknown DNS Resource Record (RR)         Types", RFC 3597, September 2003.   [13]  Eastlake, D. and P. Jones, "US Secure Hash Algorithm 1 (SHA1)",         RFC 3174, September 2001.Laurie, et al.           Expires August 5, 2006                [Page 21]Internet-Draft                    nsec3                    February 200612.2.  Informative References   [14]  Vixie, P., "Extending DNSSEC-BIS (DNSSEC-TER)",         draft-vixie-dnssec-ter-01 (work in progress), June 2004.   [15]  Josefsson, Ed., S,., "The Base16, Base32, and Base64 Data         Encodings.", draft-josefsson-rfc3548bis-00 (work in progress),         October 2005.   [16]  Atkins, D. and R. Austein, "Threat Analysis of the Domain Name         System (DNS)", RFC 3833, August 2004.Editorial Comments   [Comment.1]  Although, strictly speaking, the names *did* exist.   [Comment.2]  Note that this method makes it impossible to detect                (extremely unlikely) hash collisions.Appendix A.  Example Zone   This is a zone showing its NSEC3 records.  They can also be used as   test vectors for the hash algorithm.   The data in the example zone is currently broken, as it uses a   different base32 alphabet.  This shall be fixed in the next release.   example.       3600 IN SOA ns1.example. bugs.x.w.example. (                              1                              3600                              300                              3600000                              3600 )                  3600 RRSIG  SOA 5 1 3600 20050712112304 (                              20050612112304 62699 example.                              RtctD6aLUU5Md5wOOItilS7JXX1tf58Ql3sK                              mTXkL13jqLiUFOGg0uzqRh1U9GbydS0P7M0g                              qYIt90txzE/4+g== )                  3600 NS     ns1.example.                  3600 NS     ns2.example.                  3600 RRSIG  NS 5 1 3600 20050712112304 (                              20050612112304 62699 example.                              hNyyin2JpECIFxW4vsj8RhHcWCQKUXgO+z4l                              m7g2zM8q3Qpsm/gYIXSF2Rhj6lAG7esR/X9d                              1SH5r/wfjuCg+g== )                  3600 MX     1 xx.example.Laurie, et al.           Expires August 5, 2006                [Page 22]Internet-Draft                    nsec3                    February 2006                  3600 RRSIG  MX 5 1 3600 20050712112304 (                              20050612112304 62699 example.                              L/ZDLMSZJKITmSxmM9Kni37/wKQsdSg6FT0l                              NMm14jy2Stp91Pwp1HQ1hAMkGWAqCMEKPMtU                              S/o/g5C8VM6ftQ== )                  3600 DNSKEY 257 3 5 (                              AQOnsGyJvywVjYmiLbh0EwIRuWYcDiB/8blX                              cpkoxtpe19Oicv6Zko+8brVsTMeMOpcUeGB1                              zsYKWJ7BvR2894hX                              ) ; Key ID = 21960                  3600 DNSKEY 256 3 5 (                              AQO0gEmbZUL6xbD/xQczHbnwYnf+jQjwz/sU                              5k44rHTt0Ty+3aOdYoome9TjGMhwkkGby1TL                              ExXT48OGGdbfIme5                              ) ; Key ID = 62699                  3600 RRSIG  DNSKEY 5 1 3600 20050712112304 (                              20050612112304 62699 example.                              e6EB+K21HbyZzoLUeRDb6+g0+n8XASYe6h+Z                              xtnB31sQXZgq8MBHeNFDQW9eZw2hjT9zMClx                              mTkunTYzqWJrmQ== )                  3600 RRSIG  DNSKEY 5 1 3600 20050712112304 (

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?