what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Security Implications Of IPv6 Fragmentation With IPv6 Neighbor Discovery Revision 03

Security Implications Of IPv6 Fragmentation With IPv6 Neighbor Discovery Revision 03
Posted Jan 20, 2013
Authored by Fernando Gont | Site ietf.org

IPv6 Extension Headers with Neighbor Discovery messages can be leveraged to circumvent simple local network protections, such as "Router Advertisement Guard". Since there is no legitimate use for IPv6 Extension Headers in Neighbor Discovery messages, and such use greatly complicates network monitoring and simple security mitigations such as RA-Guard, this document proposes that hosts silently ignore Neighbor Discovery messages that use IPv6 Extension Headers.

Changes: Revision 3 of this document.
tags | paper, local
SHA-256 | 88c1519d37583c204027fbdd3ae3a25828b219b714e31c6f02daeaa96b3e1490

Security Implications Of IPv6 Fragmentation With IPv6 Neighbor Discovery Revision 03

Change Mirror Download



IPv6 maintenance Working Group (6man) F. Gont
Internet-Draft SI6 Networks / UTN-FRH
Updates: 3971, 4861 (if approved) January 14, 2013
Intended status: Standards Track
Expires: July 18, 2013


Security Implications of IPv6 Fragmentation with IPv6 Neighbor Discovery
draft-ietf-6man-nd-extension-headers-03

Abstract

This document analyzes the security implications of employing IPv6
fragmentation with Neighbor Discovery (ND) messages. It updates RFC
4861 such that use of the IPv6 Fragmentation Header is forbidden in
all Neighbor Discovery messages, thus allowing for simple and
effective counter-measures for Neighbor Discovery attacks. Finally,
it discusses the security implications of using IPv6 fragmentation
with SEcure Neighbor Discovery (SEND), and formally updates RFC 3971
to provide advice regarding how the aforementioned security
implications can be prevented.

Status of this Memo

This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."

This Internet-Draft will expire on July 18, 2013.

Copyright Notice

Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents



Gont Expires July 18, 2013 [Page 1]

Internet-Draft ND and IPv6 Fragmentation January 2013


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

1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Traditional Neighbor Discovery and IPv6 Fragmentation . . . . 5
3. SEcure Neighbor Discovery (SEND) and IPv6 Fragmentation . . . 6
4. Specification . . . . . . . . . . . . . . . . . . . . . . . . 7
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8
6. Security Considerations . . . . . . . . . . . . . . . . . . . 9
7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 10
8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 11
8.1. Normative References . . . . . . . . . . . . . . . . . . . 11
8.2. Informative References . . . . . . . . . . . . . . . . . . 11
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 13































Gont Expires July 18, 2013 [Page 2]

Internet-Draft ND and IPv6 Fragmentation January 2013


1. Introduction

The Neighbor Discovery Protocol (NDP) is specified in RFC 4861
[RFC4861]. It is used by both hosts and routers. Its functions
include Neighbor Discovery (ND), Router Discovery (RD), Address
Autoconfiguration, Address Resolution, Neighbor Unreachability
Detection (NUD), Duplicate Address Detection (DAD), and Redirection.

Many of the possible attacks against the Neighbor Discovery Protocol
are discussed in detail in [RFC3756]. In order to mitigate the
aforementioned possible attacks, the SEcure Neighbor Discovery (SEND)
was standardized. SEND employs a number of mechanisms to certify the
origin of Neighbor Discovery packets and the authority of routers,
and to protect Neighbor Discovery packets from being the subject of
modification or replay attacks.

However, a number of factors, such as the use of trust anchors and
the unavailability of SEND implementations for many widely-deployed
operating systems, make SEND hard to deploy [Gont-DEEPSEC2011].
Thus, in many general scenarios it may be necessary and/or convenient
to use other mitigation techniques for NDP-based attacks. The
following mitigations are currently available for NDP attacks:

o Layer-2 filtering of Neighbor Discovery packets (such as RA-Guard
[RFC6105])

o Neighbor Discovery monitoring tools (e.g., such as NDPMon
[NDPMon], ramond [ramond], and rafixd [rafixd])

o Intrusion Prevention Systems (IPS)

IPv6 Router Advertisement Guard (RA-Guard) is a mitigation technique
for attack vectors based on ICMPv6 Router Advertisement messages. It
is meant to block attack packets at a layer-2 device before the
attack packets actually reach the target nodes. [RFC6104] describes
the problem statement of "Rogue IPv6 Router Advertisements", and
[RFC6105] specifies the "IPv6 Router Advertisement Guard"
functionality.

Tools such as NDPMon [NDPMon] and ramond [ramond] aim at monitoring
Neighbor Discovery traffic in the hopes of detecting possible attacks
when there are discrepancies between the information advertised in
Neighbor Discovery packets and the information stored on a local
database. rafixd [rafixd] goes one step further, and tries to
mitigate some Neighbor Discovery attacks by sending "correcting"
Router Advertisement messages in response to incorrect/malicious
Router Advertisement messages.




Gont Expires July 18, 2013 [Page 3]

Internet-Draft ND and IPv6 Fragmentation January 2013


Some Intrusion Prevention Systems (IPS) can mitigate Neighbor
Discovery attacks. We recommend that Intrusion Prevention Systems
(IPS) implement mitigations for NDP attacks.

A key challenge that these mitigation or monitoring techniques face
is that introduced by IPv6 fragmentation, since it is trivial for an
attacker to conceal his attack by fragmenting his packets into
multiple fragments. This may limit or even eliminate the
effectiveness of the aforementioned mitigation or monitoring
techniques. Recent work [CPNI-IPv6] indicates that current
implementations of the aforementioned mitigations for NDP attacks can
be trivially evaded. For example, as noted in
[I-D.ietf-v6ops-ra-guard-implementation], current RA-Guard
implementations can be trivially evaded by fragmenting the attack
packets into multiple fragments, such that the layer-2 device cannot
find all the necessary information to perform packet filtering in the
same packet. While Neighbor Discovery monitoring tools could (in
theory implement IPv6 fragment reassembly, this is usually an arms-
race with the attacker (an attacker generate lots of forged fragments
to "confuse" the monitoring tools), and therefore the aforementioned
tools are unreliable for the detection of such attacks.

Section 2 analyzes the use of IPv6 fragmentation in traditional
Neighbor discovery. Section 3 analyzes the use of IPv6 fragmentation
in SEcure Neighbor Discovery (SEND). Section 4 formally updates RFC
4861 such that use of the IPv6 Fragment Header with traditional
Neighbor Discovery is forbidden, and also formally updates RFC 3971
providing advice on the use of IPv6 fragmentation with SEND.

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 RFC 2119 [RFC2119].



















Gont Expires July 18, 2013 [Page 4]

Internet-Draft ND and IPv6 Fragmentation January 2013


2. Traditional Neighbor Discovery and IPv6 Fragmentation

The only potential use case for IPv6 fragmentation with traditional
(i.e., non-SEND) IPv6 Neighbor Discovery would be that in which a
Router Advertisement must include a large number of options (Prefix
Information Options, Route Information Options, etc.). However, this
could still be achieved without employing fragmentation, by splitting
the aforementioned information into multiple Router Advertisement
messages.

Some Neighbor Discovery implementations are known to silently
ignore Router Advertisement messages that employ fragmentation.
Therefore, splitting the necessary information into multiple RA
messages (rather than sending a large RA message that is
fragmented into multiple IPv6 fragments) is probably desirable
even from an interoperability point of view.

As a result of the aforementioned considerations, and since avoiding
the use of IPv6 fragmentation in traditional Neighbor Discovery would
greatly simplify and improve the effectiveness of monitoring and
filtering ND, Section 4 specifies that hosts silently ignore
traditional Neighbor Discovery messages (i.e., those specified in
[RFC4861]) that employ IPv6 fragmentation.




























Gont Expires July 18, 2013 [Page 5]

Internet-Draft ND and IPv6 Fragmentation January 2013


3. SEcure Neighbor Discovery (SEND) and IPv6 Fragmentation

SEND packets typically carry more information than traditional
Neighbor Discovery packets: for example, they include additional
options such as the CGA option and the RSA signature option.

When SEND nodes employ any of the Neighbor Discovery messages
specified in [RFC4861], the situation is roughly the same: if more
information than would fit in a non-fragmented Neighbor Discovery
packet needs to be sent, it should be split into multiple Neighbor
Discovery messages (such that IPv6 fragmentation is avoided).

However, Certification Path Advertisement messages (specified in
[RFC3971]) pose a different situation, since the Certificate Option
they include typically contains much more information than any other
Neighbor Discovery option. For example, Appendix C of [RFC3971]
reports Certification Path Advertisement messages from 1050 to 1066
bytes on an Ethernet link layer. Since the size of CPA messages
could potentially exceed the MTU of the local link, Section 4
recommends that fragmented CPA messages be normally processed, but
discourages the use of keys that would result in fragmented CPA
messages.

It should be noted that relying on fragmentation opens the door to a
variety of IPv6 fragmentation-based attacks. In particular, if an
attacker is located on the same broadcast domain as the victim host,
and Certification Path Advertisement messages employ IPv6
fragmentation, it would be trivial for the attacker to forge IPv6
fragments such that they result in "Fragment ID collisions", causing
both the attack fragments and the legitimate fragments to be
discarded by the victim node. This would eventually cause the
Authorization Delegation Discovery to fail, thus leading the host to
fall back (depending on local configuration) either to unsecured
mode, or to reject the corresponding Router Advertisement messages
(possibly resulting in a Denial of Service).
















Gont Expires July 18, 2013 [Page 6]

Internet-Draft ND and IPv6 Fragmentation January 2013


4. Specification

Nodes MUST NOT employ IPv6 fragmentation for sending any of the
following Neighbor Discovery and SEcure Neighbor Discovery messages:

o Neighbor Solicitation

o Neighbor Advertisement

o Router Solicitation

o Router Advertisement

o Redirect

o Certification Path Solicitation

Nodes SHOULD NOT employ IPv6 fragmentation for sending the following
messages:

o Certification Path Advertisement messages

Nodes MUST silently ignore the following Neighbor Discovery and
SEcure Neighbor Discovery messages if the packets carrying them
include an IPv6 Fragmentation Header:

o Neighbor Solicitation

o Neighbor Advertisement

o Router Solicitation

o Router Advertisement

o Redirect

o Certification Path Solicitation

Nodes SHOULD normally process the following messages when the packets
carrying them include an IPv6 Fragmentation Header:

o Certification Path Advertisement

SEND nodes SHOULD NOT employ keys that would result in fragmented CPA
messages.






Gont Expires July 18, 2013 [Page 7]

Internet-Draft ND and IPv6 Fragmentation January 2013


5. IANA Considerations

There are no IANA registries within this document. The RFC-Editor
can remove this section before publication of this document as an
RFC.














































Gont Expires July 18, 2013 [Page 8]

Internet-Draft ND and IPv6 Fragmentation January 2013


6. Security Considerations

The IPv6 Fragmentation Header can be leveraged to circumvent network
monitoring tools and current implementations of mechanisms such as
RA-Guard [I-D.ietf-v6ops-ra-guard-implementation]. By updating the
relevant specifications such that the IPv6 Fragment Header is not
allowed in any Neighbor Discovery messages except "Certification Path
Advertisement", protection of local nodes against Neighbor Discovery
attacks, and monitoring of Neighbor Discovery traffic is greatly
simplified.

[I-D.ietf-v6ops-ra-guard-implementation] discusses an improvement to
the RA-Guard mechanism that can mitigate Neighbor Discovery attacks
that employ IPv6 Fragmentation. However, it should be noted that
unless [RFC4861] is updated (as proposed in this document), Neighbor
Discovery monitoring tools (such as NDPMon [NDPMon], ramond [ramond],
and rafixd [rafixd]) would remain unreliable and trivial to
circumvent by a skilled attacker.

As noted in Section 3, use of SEND could potentially result in
fragmented "Certification Path Advertisement" messages, thus allowing
an attacker to employ IPv6 fragmentation-based attacks against such
messages. Therefore, to the extent that is possible, such use of
fragmentation should be avoided.



























Gont Expires July 18, 2013 [Page 9]

Internet-Draft ND and IPv6 Fragmentation January 2013


7. Acknowledgements

The author would like to thank (in alphabetical order) Mikael
Abrahamsson, Ran Atkinson, Ron Bonica, Jean-Michel Combes, David
Farmer, Roque Gagliano, Bran Haberman, Bob Hinden, Philip Homburg,
Ray Hunter, Arturo Servin, and Mark Smith, for providing valuable
comments on earlier versions of this document.

This document resulted from the project "Security Assessment of the
Internet Protocol version 6 (IPv6)" [CPNI-IPv6], carried out by
Fernando Gont on behalf of the UK Centre for the Protection of
National Infrastructure (CPNI). The author would like to thank the
UK CPNI, for their continued support.






































Gont Expires July 18, 2013 [Page 10]

Internet-Draft ND and IPv6 Fragmentation January 2013


8. References

8.1. Normative References

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC3971] Arkko, J., Kempf, J., Zill, B., and P. Nikander, "SEcure
Neighbor Discovery (SEND)", RFC 3971, March 2005.

[RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman,
"Neighbor Discovery for IP version 6 (IPv6)", RFC 4861,
September 2007.

8.2. Informative References

[RFC3756] Nikander, P., Kempf, J., and E. Nordmark, "IPv6 Neighbor
Discovery (ND) Trust Models and Threats", RFC 3756,
May 2004.

[RFC6104] Chown, T. and S. Venaas, "Rogue IPv6 Router Advertisement
Problem Statement", RFC 6104, February 2011.

[RFC6105] Levy-Abegnoli, E., Van de Velde, G., Popoviciu, C., and J.
Mohacsi, "IPv6 Router Advertisement Guard", RFC 6105,
February 2011.

[NDPMon] "NDPMon - IPv6 Neighbor Discovery Protocol Monitor",
<http://ndpmon.sourceforge.net/>.

[ramond] "ramond", <http://ramond.sourceforge.net/>.

[rafixd] "rafixd", <http://www.kame.net/dev/cvsweb2.cgi/kame/kame/
kame/rafixd/>.

[I-D.ietf-v6ops-ra-guard-implementation]
Gont, F., "Implementation Advice for IPv6 Router
Advertisement Guard (RA-Guard)",
draft-ietf-v6ops-ra-guard-implementation-07 (work in
progress), November 2012.

[CPNI-IPv6]
Gont, F., "Security Assessment of the Internet Protocol
version 6 (IPv6)", UK Centre for the Protection of
National Infrastructure, (available on request).

[Gont-DEEPSEC2011]
Gont, "Results of a Security Assessment of the Internet



Gont Expires July 18, 2013 [Page 11]

Internet-Draft ND and IPv6 Fragmentation January 2013


Protocol version 6 (IPv6)", DEEPSEC 2011 Conference,
Vienna, Austria, November 2011, <http://
www.si6networks.com/presentations/deepsec2011/
fgont-deepsec2011-ipv6-security.pdf>.















































Gont Expires July 18, 2013 [Page 12]

Internet-Draft ND and IPv6 Fragmentation January 2013


Author's Address

Fernando Gont
SI6 Networks / UTN-FRH
Evaristo Carriego 2644
Haedo, Provincia de Buenos Aires 1706
Argentina

Phone: +54 11 4650 8472
Email: fgont@si6networks.com
URI: http://www.si6networks.com








































Gont Expires July 18, 2013 [Page 13]

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    0 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close