1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 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 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
|
<pre>Internet Engineering Task Force (IETF) D. Miles
Request for Comments: 6704 Google
Updates: <a href="./rfc3203">3203</a> W. Dec
Category: Standards Track Cisco Systems
ISSN: 2070-1721 J. Bristow
Swisscom Schweiz AG
R. Maglione
Telecom Italia
August 2012
<span class="h1">Forcerenew Nonce Authentication</span>
Abstract
Dynamic Host Configuration Protocol (DHCP) FORCERENEW allows for the
reconfiguration of a single host by forcing the DHCP client into a
Renew state on a trigger from the DHCP server. In the Forcerenew
Nonce Authentication protocol, the server sends a nonce to the client
in the initial DHCP ACK that is used for subsequent validation of a
FORCERENEW message. This document updates <a href="./rfc3203">RFC 3203</a>.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6704">http://www.rfc-editor.org/info/rfc6704</a>.
<span class="grey">Miles, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-2">2</a>. Requirements Language ...........................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. Message Authentication ..........................................<a href="#page-3">3</a>
<a href="#section-3.1">3.1</a>. Forcerenew Nonce Authentication ............................<a href="#page-3">3</a>
<a href="#section-3.1.1">3.1.1</a>. Forcerenew Nonce Protocol Capability Option .........<a href="#page-4">4</a>
<a href="#section-3.1.2">3.1.2</a>. Forcerenew Nonce Authentication Protocol ............<a href="#page-6">6</a>
3.1.3. Server Considerations for Forcerenew Nonce
Authentication ......................................<a href="#page-8">8</a>
3.1.4. Client Considerations for Forcerenew Nonce
Authentication ......................................<a href="#page-9">9</a>
<a href="#section-4">4</a>. IANA Considerations ............................................<a href="#page-10">10</a>
<a href="#section-5">5</a>. Security Considerations ........................................<a href="#page-10">10</a>
<a href="#section-5.1">5.1</a>. Protocol Vulnerabilities ..................................<a href="#page-11">11</a>
<a href="#section-6">6</a>. Acknowledgements ...............................................<a href="#page-11">11</a>
<a href="#section-7">7</a>. Normative References ...........................................<a href="#page-11">11</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The DHCP reconfigure extension defined in [<a href="./rfc3203" title=""DHCP reconfigure extension"">RFC3203</a>] is a useful
mechanism allowing dynamic reconfiguration of a single host triggered
by the DHCP server. Its application is currently limited by a
requirement that a Forcerenew message is always authenticated using
procedures as described in [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>]. Authentication for DHCP
[<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] is mandatory for FORCERENEW; however, as it is currently
defined, [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] requires distribution of constant token or shared-
secret out-of-band to DHCP clients.
The motivation for making authentication mandatory in DHCP FORCERENEW
was to prevent an off-network attacker from taking advantage of DHCP
FORCERENEW to accurately predict the timing of a DHCP renewal.
Without DHCP FORCERENEW, DHCP renewal timing is under the control of
<span class="grey">Miles, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
the client, and an off-network attacker has no way of predicting when
it will happen, since it doesn't have access to the exchange between
the DHCP client and DHCP server.
However, the requirement to use the DHCP authentication described in
[<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] is more stringent than is required for this use case and
has limited adoption of DHCP FORCERENEW. [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>] defines an
authentication protocol using a nonce to prevent off-network
attackers from successfully causing clients to renew. Since the off-
network attacker doesn't have access to the nonce, it can't trick the
client into renewing at a time of its choosing.
This document defines extensions to Authentication for DHCPv4
Messages [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] to create a new authentication protocol for DHCPv4
FORCERENEW [<a href="./rfc3203" title=""DHCP reconfigure extension"">RFC3203</a>] messages; this method does not require out-of-
band key distribution to DHCP clients. The Forcerenew Nonce is
exchanged between server and client on initial DHCP ACK and is used
for verification of any subsequent FORCERENEW message. This document
updates [<a href="./rfc3203" title=""DHCP reconfigure extension"">RFC3203</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Requirements Language</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Message Authentication</span>
The Forcerenew message MUST be authenticated using either [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>]
or the proposed Forcerenew Nonce Authentication protocol.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Forcerenew Nonce Authentication</span>
The Forcerenew Nonce Authentication protocol provides protection
against misconfiguration of a client caused by a Forcerenew message
sent by a malicious DHCP server. In this protocol, a DHCP server
sends a Forcerenew Nonce to the client in the initial exchange of
DHCP messages. The client records the Forcerenew Nonce for use in
authenticating subsequent Forcerenew messages from that server. The
server then includes a Hashed Message Authentication Code (HMAC)
computed from the Forcerenew nonce in subsequent Forcerenew messages.
Both the Forcerenew Nonce sent from the server to the client and the
HMAC in subsequent Forcerenew messages are carried as the
Authentication information in a DHCP Authentication option. The
format of the Authentication information is defined in the following
section.
<span class="grey">Miles, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
The Forcerenew Nonce Authentication protocol is used (initiated by
the server) only if the client and server are not using the
authentication mechanism specified in [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] and the client and
server have negotiated to use the Forcerenew Nonce Authentication
protocol.
<span class="h4"><a class="selflink" id="section-3.1.1" href="#section-3.1.1">3.1.1</a>. Forcerenew Nonce Protocol Capability Option</span>
A DHCP client indicates DHCP Forcerenew Nonce Protocol capability by
including a FORCERENEW_NONCE_CAPABLE (145) option in DHCP Discover
and Request messages sent to the server.
A DHCP server that does not support Forcerenew Nonce Authentication
protocol authentication SHOULD ignore the FORCERENEW_NONCE_CAPABLE
(145) option. A DHCP server indicates DHCP Forcerenew Nonce Protocol
preference by including a FORCERENEW_NONCE_CAPABLE (145) option in
any DHCP Offer messages sent to the client.
A DHCP client MUST NOT send DHCP messages with authentication options
where the protocol value is Forcerenew Nonce Authentication.
The FORCERENEW_NONCE_CAPABLE option contains code 145, length n, and
a sequence of algorithms the client supports:
Code Len Algorithms
+-----+-----+----+----+----+
| 145 | n | A1 | A2 | A3 | ....
+-----+-----+----+----+----+
Figure 1: FORCERENEW_NONCE_CAPABLE Option
In this document, <a href="#section-3.1.2">Section 3.1.2</a> defines the Forcerenew Nonce
Authentication protocol for algorithm equal to 1 and type equal to 2;
future documents will specify the other values for algorithm !=1 and
type !=2, allowing a different algorithm to be used with shorter/
longer values.
The client would indicate that it supports the functionality by
inserting the FORCERENEW_NONCE_CAPABLE option in the DHCP Discover
and Request messages. If the server supports Forcerenew nonce
authentication and requires Forcerenew nonce authentication, it will
insert the FORCERENEW_NONCE_CAPABLE option in the DHCPOFFER.
<span class="grey">Miles, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
Server Client Server
(not selected) (selected)
v v v
| | |
| Begins initialization |
| | |
| _____________/|\____________ |
|/DHCPDISCOVER | DHCPDISCOVER \|
| w/FORCERENEW- | w/FORCERENEW- |
| NONCE-CAPABLE | NONCE-CAPABLE |
| | |
Determines | Determines
configuration | configuration
| | |
|\ | /|
| \__________ | _________/ |
| DHCPOFFER \ | /DHCPOFFER |
|w/FORCERENEW \ | /w/FORCERENEW|
|NONCE-CAPABLE \| /NONCE-CAPABLE|
| | |
| Collects replies |
| | |
| Selects configuration |
| | |
| _____________/|\____________ |
|/ DHCPREQUEST | DHCPREQUEST\ |
| w/Forcerenew- | w/Forcerenew- |
| Nonce-Capable | Nonce-Capable |
| | |
| | Commits configuration
| | |
| |Creates 128-bit Forcerenew Nonce
| | |
| | _____________/|
| |/ DHCPACK |
| | w/Auth-Proto= |
| | Forcerenew- |
| | Nonce |
| | |
|Client stores Forcerenew Nonce |
| | |
| Initialization complete |
| | |
. . .
. . .
| | |
| Forcerenew |
<span class="grey">Miles, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
| | _____________/|
| |/ DHCPFORCE |
| | w/Auth-Proto= |
| | Forcerenew- |
| | Digest(HMAC)|
| | |
| Client checks HMAC digest |
| using stored Forcerenew Nonce |
| | |
| |\____________ |
| | DHCPREQUEST\ |
| | w/FORCERENEW- |
| | NONCE-CAPABLE |
| | |
| | Commits configuration
| | |
| |Creates 128-bit Forcerenew Nonce
| | |
| | _____________/|
| |/ DHCPACK |
| | w/Auth-Proto= |
| | Forcerenew- |
| | Nonce |
| | |
| | |
| | |
. . .
. . .
| | |
| Graceful shutdown |
| | |
| |\ ____________ |
| | DHCPRELEASE \|
| | |
| | Discards lease
| | |
v v v
Figure 2: Timeline Diagram of Messages Exchanged between DHCP Client
and Servers Using the Forcerenew Nonce Authentication Protocol
<span class="h4"><a class="selflink" id="section-3.1.2" href="#section-3.1.2">3.1.2</a>. Forcerenew Nonce Authentication Protocol</span>
The Forcerenew Nonce Authentication protocol makes use of both the
DHCP authentication option defined in [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] reusing the option
format and of the Reconfigure Key Authentication Protocol defined in
[<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>].
<span class="grey">Miles, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
The following diagram defines the format of the DHCP authentication
option:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Code | Length | Protocol | Algorithm |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RDM | Replay Detection (64 bits) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Replay cont. |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Replay cont. | |
+-+-+-+-+-+-+-+-+ |
| |
| Authentication Information |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: Format of the DHCP Authentication Option
The following fields are set in an DHCP authentication option for the
Forcerenew Nonce Authentication protocol.
Code: 90 (Authentication) per [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>]
Length: contains the length of the protocol
Protocol: 3 (Reconfigure Key) per [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>]
Algorithm: 1 (HMAC-MD5) per [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] and [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>]
Replay Detection: per the Replay Detection Method (RDM)
Replay Detection Method (RDM): 0
Authentication Information: specified below
<span class="grey">Miles, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
The format of the Authentication Information for the Forcerenew Nonce
Authentication Protocol is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Value (128 bits) |
+-+-+-+-+-+-+-+-+ |
. .
. .
. +-+-+-+-+-+-+-+-+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 4: Format of the Authentication Information
Type: The type of data in Value field carried in this option:
1 Forcerenew nonce Value (used in ACK message)
2 HMAC-MD5 digest of the message (Forcerenew message)
Value: The message authentication code generated by applying MD5
to the DHCP message
<span class="h4"><a class="selflink" id="section-3.1.3" href="#section-3.1.3">3.1.3</a>. Server Considerations for Forcerenew Nonce Authentication</span>
The use of Forcerenew Nonce Authentication protocol is dependent on
the client indicating its capability through the
FORCERENEW_NONCE_CAPABLE (145) DHCP option in any DHCP Discover or
Request messages. The DHCP Discovery or Request message from the
client MUST contain the FORCERENEW_NONCE_CAPABLE (145) option if the
Forcerenew Nonce Protocol is to be used by the server. The absence
of the FORCERENEW_NONCE_CAPABLE (145) option indicates to the server
that the Forcerenew Nonce Authentication protocol is not supported;
thus, the server MUST NOT include a Forcerenew Nonce Protocol
Authentication option in the DHCP ACK.
The server indicates its support of the Forcerenew Nonce
Authentication protocol by including the DHCP
FORCERENEW_NONCE_CAPABLE (145) option in the DHCPOFFER. The server
SHOULD NOT include this option unless the client has indicated its
capability in a DHCP Discovery message. The presence of the
FORCERENEW_NONCE_CAPABLE (145) option in the DHCP offer may be used
by clients to prefer DHCP servers that are Forcerenew Nonce
Authentication protocol capable over those servers that do not
support such capability.
<span class="grey">Miles, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
If a capable server receives a DISCOVER or REQUEST (any type) that
indicates the client is capable, and the server has no previous nonce
recorded, it MUST generate a nonce and include it in the ACK.
The server selects a Forcerenew Nonce for a client only during
Request/ACK message exchange. The server records the Forcerenew
nonce and transmits that nonce to the client in an Authentication
option in the DHCP ACK message.
The server SHOULD NOT include the nonce in an ACK when responding to
a renew unless a new nonce was generated. This minimizes the number
of times the nonce is sent over the wire.
If the server to which the DHCP Request message was sent at time T1
has not responded, the client enters the REBINDING state and attempts
to contact any server. The new Server receiving the DHCP message
MUST generate a new nonce.
The Forcerenew nonce is 128 bits long, and it MUST be a
cryptographically strong random or pseudo-random number that cannot
easily be predicted. The nonce is embedded as a 128-bit value of the
Authentication information where type is set to 1 (Forcerenew nonce
Value).
To provide authentication for a Forcerenew message, the server
selects a replay detection value according to the RDM selected by the
server and computes an HMAC-MD5 of the Forcerenew message, based on
the procedure specified in <a href="./rfc3315#section-21.5">Section 21.5 of [RFC3315]</a>, using the
Forcerenew Nonce for the client. The server computes the HMAC-MD5
over the entire DHCP Forcerenew message, including the Authentication
option; the HMAC-MD5 field in the Authentication option is set to
zero for the HMAC-MD5 computation
<span class="h4"><a class="selflink" id="section-3.1.4" href="#section-3.1.4">3.1.4</a>. Client Considerations for Forcerenew Nonce Authentication</span>
A client that supports this mechanism MUST indicate Forcerenew nonce
Capability by including the FORCERENEW_NONCE_CAPABLE (145) DHCP
option defined in <a href="#section-3.1.1">Section 3.1.1</a> in all DHCP Discover and Request
messages. DHCP servers that support Forcerenew nonce Protocol
authentication MUST include the FORCERENEW_NONCE_CAPABLE (145) DHCP
option in all DHCP Offers, allowing the client to use this capability
in selecting DHCP servers should multiple Offers arrive.
The client MUST validate the DHCP ACK message contains a Forcerenew
Nonce in a DHCP authentication option. If the server has indicated
capability for Forcerenew Nonce Authentication protocol in the DHCP
OFFER and the subsequent ACK received by the client while in the
selecting state omits a valid DHCP authentication option for the
<span class="grey">Miles, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
Forcerenew Nonce Authentication protocol, the client MUST discard the
message and return to the INIT state.
The client MUST record the Forcerenew Nonce from any valid ACK it
receives, if the ACK contains one.
To authenticate a Forcerenew message, the client computes an HMAC-
MD5, based on the procedure specified in <a href="./rfc3315#section-21.5">Section 21.5 of [RFC3315]</a>,
over the DHCP Forcerenew message (after setting the HMAC-MD5 field in
the Authentication option to zero), using the Forcerenew Nonce
received from the server. If this computed HMAC-MD5 matches the
value in the Authentication option, the client accepts the FORCERENEW
message.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
IANA has assigned the following new DHCPv4 option code from the
registry "BOOTP Vendor Extensions and DHCP Options" maintained at
<a href="http://www.iana">http://www.iana</a>.org/assignments/bootp-dhcp-parameters:
Tag: 145
Name: FORCERENEW_NONCE_CAPABLE
Data length: 1
Description: Forcerenew Nonce Capable
Reference: this document
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
As in some network environments FORCERENEW can be used to snoop and
spoof traffic, the FORCERENEW message MUST be authenticated using the
procedures as described in [<a href="./rfc3118" title=""Authentication for DHCP Messages"">RFC3118</a>] or the mechanism described in
this document.
The mechanism in [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>] for DHCPv6, which this document mirrors
for DHCPv4, uses a nonce to prevent an off-link attacker from
successfully triggering a renewal on a client by sending
DHCPFORCERENEW; since the attacker is off-link, it doesn't have the
nonce, and can't force a renewal.
An on-link attacker can always simply watch the DHCP renewal message
go out and respond to it, so this mechanism is useless for preventing
on-link attacks; hence, the security of the nonce in the case of on-
link attacks isn't relevant. Therefore, HMAC-MD5 is, by definition,
adequate for the purpose, and there is no need for an extensible HMAC
<span class="grey">Miles, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
mechanism. FORCERENEW messages failing the authentication should be
silently discarded by the client.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Protocol Vulnerabilities</span>
The mechanism described in this document is vulnerable to a denial-
of-service (DoS) attack through flooding a client with bogus
FORCERENEW messages. The calculations involved in authenticating the
bogus FORECERENEW messages may overwhelm the device on which the
client is running.
The mechanism described provides protection against the use of a
FORCERENEW message by a malicious DHCP server to mount a DoS or man-
in-the-middle attack on a client. This protocol can be compromised
by an attacker that can intercept the initial message in which the
DHCP server sends the nonce to the client.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgements</span>
This contribution is based on work by Vitali Vinokour. Major
sections of this document use modified text from [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>]. The
authors wish to thank Ted Lemon, Matthew Ryan, and Bernie Volz for
their support.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC3118">RFC3118</a>] Droms, R. and W. Arbaugh, "Authentication for DHCP
Messages", <a href="./rfc3118">RFC 3118</a>, June 2001.
[<a id="ref-RFC3203">RFC3203</a>] T'Joens, Y., Hublet, C., and P. De Schrijver, "DHCP
reconfigure extension", <a href="./rfc3203">RFC 3203</a>, December 2001.
[<a id="ref-RFC3315">RFC3315</a>] Droms, R., Bound, J., Volz, B., Lemon, T., Perkins, C.,
and M. Carney, "Dynamic Host Configuration Protocol for
IPv6 (DHCPv6)", <a href="./rfc3315">RFC 3315</a>, July 2003.
<span class="grey">Miles, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6704">RFC 6704</a> Forcerenew Nonce August 2012</span>
Authors' Addresses
David Miles
Google
EMail: davidmiles@google.com
Wojciech Dec
Cisco Systems
Haarlerbergpark Haarlerbergweg 13-19
Amsterdam, NOORD-HOLLAND 1101 CH
Netherlands
EMail: wdec@cisco.com
James Bristow
Swisscom Schweiz AG
Zentweg 9
Bern, 3050,
Switzerland
EMail: James.Bristow@swisscom.com
Roberta Maglione
Telecom Italia
Via Reiss Romoli 274
Torino 10148
Italy
EMail: roberta.maglione@telecomitalia.it
Miles, et al. Standards Track [Page 12]
</pre>
|