Recent advances in IPv6 insecurities Marc van Hauser Heuse CCC Congress 2010, Berlin Marc Heuse

Similar documents
Recent advances in IPv6 insecurities reloaded Marc van Hauser Heuse GOVCERT NL Marc Heuse

IPv6 Next generation IP

Configuring IPv6 for Gigabit Ethernet Interfaces

IPv6 Associated Protocols. Athanassios Liakopoulos 6DEPLOY IPv6 Training, Skopje, June 2011

IPv6 Protocol. Does it solve all the security problems of IPv4? Franjo Majstor EMEA Consulting Engineer Cisco Systems, Inc.

IPv6 Cyber Security Briefing May 27, Ron Hulen VP and CTO Cyber Security Solutions Command Information, Inc.

Everything you need to know about IPv6 security I can manage in 30min. IPv6 Day Copenhagen November 2017

IPv6 Protocol Architecture

IPv6 Neighbor Discovery

IPv6 Protocol & Structure. npnog Dec, 2017 Chitwan, NEPAL

IPv6 Security Course Preview RIPE 76

Internet Protocol, Version 6

Setup. Grab a vncviewer like: Or

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

ECE 435 Network Engineering Lecture 14

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

IPv6 Security. 15 August

The Netwok Layer IPv4 and IPv6 Part 2

Internet Protocol v6.

Operation Manual IPv6 H3C S3610&S5510 Series Ethernet Switches Table of Contents. Table of Contents

Rocky Mountain IPv6 Summit April 9, 2008

Introduction to IPv6 - II

IPv6 tutorial. RedIRIS Miguel Angel Sotos

ICS 451: Today's plan

Introduction to IPv6

Configuring IPv6. Information About IPv6. Send document comments to CHAPTER

IPv6 Neighbor Discovery

CSEP 561 Internetworking. David Wetherall

IPv6 Security Safe, Secure, and Supported.

TCP/IP Protocol Suite

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

The Layer-2 Insecurities of IPv6 and the Mitigation Techniques

ECE 435 Network Engineering Lecture 13

IPv6 Security. Rocky Mountain IPv6 Summit. Scott Hogg. GTRI - Director of Advanced Technology Services CCIE #5133, CISSP #4610

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

IPv6 Stateless Autoconfiguration

IPv6 Technical Challenges

CSCI-1680 Network Layer:

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

New IP Header. Why change IP. Address Notation. Changes. Information Sources. IP Version 6 ITL

Information Sources Hans Kruse & Shawn Ostermann, Ohio University

IPv6 Concepts. Improve router performance Simplify IP header Align to 64 bits Address hierarchy with more levels Simplify routing tables

IPv6. (Internet Protocol version 6)

Information Sources Hans Kruse & Shawn Ostermann, Ohio University

ETSF10 Internet Protocols Network Layer Protocols

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Addressing and Routing

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August

IPv6: An Introduction

IPv6 Neighbor Discovery

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

Chapter 7: IP Addressing CCENT Routing and Switching Introduction to Networks v6.0

Configuring Wireless Multicast

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

SECURITY IN AN IPv6 WORLD MYTH & REALITY. RIPE 68 Warsaw May 2014 Chris Grundemann

Introduction to IPv6. IPv6 addresses

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

IPv6 Security: Threats and Mitigation

Remember Extension Headers?

TD#RNG#2# B.Stévant#

OSI Data Link & Network Layer

Planning for Information Network

Adopting Innovative Detection Technique To Detect ICMPv6 Based Vulnerability Attacks

IPv6 Security Considerations: Future Challenges

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Networking Potpourri: Plug-n-Play, Next Gen

IPv6- IPv4 Threat Comparison v1.0. Darrin Miller Sean Convery

Transition to IPv6. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Configuring IPv6 First-Hop Security

Workshop on Scientific Applications for the Internet of Things (IoT) March

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Introduction to Internetworking

IPv6 associated protocols

IPv6 Security Fundamentals

Configuring IPv6 basics

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Introduction to IPv6. IPv6 addresses

Basic L2 and L3 security in Campus networks. Matěj Grégr CNMS 2016

Introduc)on to IPv6. Administra)on de Réseaux Dino Lopez h<p://

IPv6 ND Configuration Example

The Netwok Layer IPv4 and IPv6 Part 2

Security in an IPv6 World Myth & Reality

Chapter 9 Internet Protocol Version 6 (IPv6)

Asst. Prof. Chaiporn Jaikaeo, Ph.D.

Step 2. Manual configuration of global unicast and link-local addresses

IPv6 Bootcamp Course (5 Days)

Computer Networks Security: intro. CS Computer Systems Security

Internet Control Message Protocol

CSCD 433/533 Advanced Networks Spring Lecture 20 IPv6 and Tunnels

Table of Contents 1 IPv6 Basics Configuration 1-1

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Network Layer (4): ICMP

ISO 9001:2008. Pankaj Kumar Dir, TEC, DOT

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

ArubaOS-Switch IPv6 Configuration Guide for YA/YB.16.04

Transcription:

Recent advances in IPv6 insecurities Marc van Hauser Heuse CCC Congress 2010, Berlin 2010 Marc Heuse <mh@mh-sec.de>

Hello, my name is

Who has already heard my previous talk? played with IPv6? IPv6 at home? IPv6 at the office/university?

The future is here already

Let s start with the basics

IPv4 4 octets 4.294.967.296 addresses 192.168.1.1

IPv6 16 octets 340.282.366.920.938.463.463.374.607.431.768.211.456 addresses 2a01:2b3:4:a::1

Separated by colons Leading zeros are omitted 2a01:2b3:4:a::1 2 octets each, hexadecimal The longest chain of :0:0: is replaced with ::

Subnets are /64 4.294.967.296 x the size of the Internet!

No broadcasts

Multicasts, but they are local only

Features! Autoconfiguration IPSEC Mobility Enough addresses!

IPv6 header layout 0 4 12 16 24 31 Version 6 Class Flow Label Payload Length Next Header Hop Limit 128 bit Source Address 128 bit Destination Address

IPv6 header layout 0 4 12 16 24 31 Version 6 Class Payload Length Flow Label Next Header 128 bit Source Address 128 bit Destination Address Hop Limit No header length No identification No checksum No fragmentation No options

Every option is an extension header Fragmentation IPSEC Source routing Destination Options

IPv6 Header Routing Header Fragment Header Next Header = 43 Next Header = 44 Next Header = 17 UDP Header Data

IPv6 is much simpler than IPv4

in theory.

<rant>

</rant>

IPv6 Vulnerabilities (CVE) 20 18 16 Not counting my CVE entries 14 12 10 8 6 4 2 0 2002 2003 2004 2005 2006 2007 2008 2009 2010

Kids, in 2005

The THC-IPv6 Attack Toolkit

ARP Spoofing => ND spoofing A B 1. NS 1. NS: ICMP Type = 135 Src = A Dst = All-Nodes Mulitcast Query= Who-has IP B? parasite6: Answers to every NS, claims to be every system on the LAN 2. NA 2. NA: ICMP Type = 136 Src = B Dst = A Data= MAC

Duplicate Address Detection DOS A 1. NS 1. NS: ICMP Type = 135 Src = :: (unspecified) Dst = All-Nodes Mulitcast Address query= Who-has IP A? dos-new-ipv6: Answer to every NS, claim to be every system on the LAN 2. No reply if nobody owns the IP address.

MITM with Redirects

MITM with Redirects (V)ictim (A)ttacker (R)outer (T)arget redir6

DHCP => Autoconfiguration A 1. RS 1. RS: ICMP Type = 133 Src = :: Dst = FF02::2 query= please send RA fake_router6: Sets any IP as default router, defines network prefixes and DNS servers 2. RA 2. RA: ICMP Type = 134 Src = Router Link-local Address Dst = FF02::1 Data= options, prefix, lifetime, autoconfig flag, DNS

Kick the default router! A default router 1. Send own RA 2. Spoof RA of default router with 0 lifetime We are getting back to this one 3. Resend own RA just to be sure

Kill all routers and clients think everything is local (it s in the standard)

RA => Systems become dual stack Can be port scanned on IPv6 No filtering on IPv6? Full port access Prefer IPv6 Will use your tunnel / MITM

How about announcing remote network addresses local? (Paypal, )

RA flooding! Cisco ASA/PIX, Cisco IOS Windows 2008, 7, Vista old Linux more?

Cisco: Just fixed for IOS, ASA soon (CSCti24526, CSCti33534)

Microsoft We consider this issue to be by design. *and will not fix this+ Even Apple got this problem right!

Remote alive scans (ping scans) as we know them are unfeasible on IPv6 some jerk (OK, that was me in 2005)

How to identify remote systems? Broadcasts Search-engines / databases Combining them Scan the whole range DNS Common addresses

Search Engines Dumped various IPv6 directories 17.000 possible domains & subdomains identified

DNS 17.000 domains bruteforcing 3217 hostnames 23.334 DNS entries found (2.011 unique hostnames)

DNS Results 15.607 unique IPv6 addresses found 7.305 networks 5.811 unique host addresses

1 301 601 901 1201 1501 1801 2101 2401 2701 3001 3301 3601 3901 4201 4501 4801 5101 5401 5701 IPv6 Host Addresses 18000 16000 14000 12000 10000 8000 6000 4000 2000 0

Host address analysis Autoconfiguration by hand Pattern Random MAC address Privacy option Fixed random got one, got all bad luck ~24 bit key space per vendorid bad luck bad luck DHCP Sequential Got one, got all Usually easy to find

by hand ::1, ::2, ::3, ::service_port ::1:service_port, ::2:service_port, ::service_port:1, ::service_port:2, The IPv4 address Funny stuff (::b00b:babe, etc.) etc.

DHCP ::1000-2000 ::100-200 ::1:0-1000 ::1:1000-2000

IPv6 Host Address Distribution Autoconfiguration Easy DHCP/Hand IPv4 address Random/Pricacy Hard DHCP/Hand

Alive Scanning 7.305 networks bruteforcing 3000 host addresses 380.766 alive systems 8.160 networks 2.779 unique host addresses

1 151 301 451 601 751 901 1051 1201 1351 1501 1651 1801 1951 2101 2251 2401 2551 2701 400000 Alive Host Addresses 350000 300000 250000 200000 150000 100000 50000 0

Alive Scanning 380.776 alive systems 17.154 reverse DNS entries 5.357 unique domains 11.578 unique hostnames

1 601 1201 1801 2401 3001 3601 4201 4801 5401 6001 6601 7201 7801 8401 9001 9601 10201 10801 11401 DNS Reverse Hostnames 20000 18000 16000 14000 12000 10000 8000 6000 4000 2000 0

do { new_dns=dns_brute(new_alive); new_alive=alive_brute(new_dns); } while (new_dns new_alive)

Conclusion DNS bruteforcing: 90% of systems in DNS with 1900 words

Conclusion Alive bruteforcing: 66% of systems with 2000 addresses scanned in 1-20 seconds

Conclusion Combined (and use of brain) ~90-95% of servers are found

Taking over the Multicast Listener Discovery Protocol for fun and denying multicast traffic

How does MLD work? A Sends periodically MLD general query messages MLD Report: I am a multicast DNS server to all routers Sends specific address query message MLD Report: I am (still) a multicast DNS server DNS multicast traffic flows to the network Spoofs A MLD Done message

First we want to become the MLD query router if (router1 < router2) master(router1);

A Sends periodically MLD general query messages MLD Report: I am a multicast DNS server to all routers DNS multicast traffic flows to the network Spoofs MLD general query message as fe80:: Spoofs A MLD Done message

Problem: We must send an MLD general query message regularly

Solution: Spoof query message with multicast all-router MAC address!

A Spoof MLD general query message as fe80:: Spoofs A MLD Done message Send general query as fe80:: with special MAC

Anybody sniffing?

Send a ping to the target with an unused multicast MAC address (Windows, Linux, more?)

Side channels in IPv6? IPv6 *is* a side channel.

Don t be scared.

IPv6 complex intellectual challenge tired? be an explorer!

Join researching IPv6!

How to get IPv6 to your home (1/4) 1. Create an account at Sixxs: http://www.sixxs.net/ 2. Request tunnel (static if possible for you, heartbeat otherwise) 3. Request a subnet (a week later)

How to get IPv6 to your home (2/4) 4. a) Configure a static tunnel: ip tunnel add sixxs mode sit local [Your IPv4 Endpoint] remote [Sixxs IPv4 Endpoint] ip link set sixxs up ip link set mtu 1280 dev sixxs ip tunnel change sixxs ttl 64 ip -6 addr add [Your IPv6 Endpoint]/[Prefix Length] dev sixxs ip -6 ro add default via [Your IPv6 endpoint] dev sixxs

How to get IPv6 to your home (3/4) 4. b) Configure a heartbeat tunnel: a) Install aiccu b) Configure aiccu.conf: username xxxx-sixxs password xxxxxxxxx tunnel_id T<your tunnel id> daemonize true automatic true ipv6_interface sixxs c) Start aiccu

How to get IPv6 to your home (4/4) 5. Configure your local network card ip -6 addr add [Your IPv6 subnet]::1/[prefix Length] dev eth0 6. Use fake_router6 for your local subnet: fake_router6 eth0 <Your IPv6 subnet>::/<prefix Length> 2a01:4f8:100:2283::2

What is new in thc-ipv6 since the 2005-2007 release? DNS6 bruteforcer More payloads for fake_router6 Implementation test-case tool Fast traceroute6 Fuzzer for IPv6 Flood tools for RA and NA Several library bugfixes & enhancements

What is new in the current thc-ipv6 source state? alive6 rewritten with 250% new functionality Flood & spoofing for all multicast protocols DHCPs6 spoofer DHCPc6 flooder DNS6 spoofer more new tools than fit the slide Enhancements for all previous tools Several library bugfixes & enhancements

How to get access to the current thc-ipv6 source code state? Send in patches and new tools! Small and limited updates will still get into the public version. Complete public release in ~2011.

http://www.thc.org/thc-ipv6

Central information resource for IPv6 security (wiki, forum, news): www.ipv6security.info www.ipv6hacking.info (Online end of January 2011)

Contact Send an email to vh@thc.org (add antispam to the subject line)

Thanks! And have fun exploring IPv6!