asia 14 nve offensive exploiting dns servers changes

34
OFFENSIVE: Exploi/ng changes on DNS server configura/on Leonardo Nve Egea [email protected] @leonardonve

Upload: wiscouser

Post on 06-Nov-2015

224 views

Category:

Documents


4 download

DESCRIPTION

Blackhat 2014 Asia 14 Nve Offensive Exploiting DNS

TRANSCRIPT

  • OFFENSIVE: Exploi/ng changes on DNS server

    congura/on Leonardo Nve Egea

    [email protected] @leonardonve

  • Security researcher since (a lot of
  • INTRODUCTION

  • What.

  • Why.

  • EXPLOITATION (I) NORMAL PROCEDURE

  • CSRF/XSS. Insucient authoriza
  • What.

  • Metasploit. Dnsmasq.

    Bind server.

    Tools.

  • Invisible proxy. Burp suite, mitmproxy

    SSLstrip. HTML injec

  • OBSTACLES OF NORMAL EXPLOITATION

  • SSL cer
  • SSL cer
  • HSTS + Preloaded HSTS sites (Non cri
  • SSH signatures failure (Cri
  • POP3/SMTP Banner (Non cri
  • Limited of hosts intercep
  • EXPLOITATION (II) IMPROVE THE ATTACK PROCEDURE

  • Discre
  • A DNS feature for high availability:

    Improve the aTack.

  • Improve the aTack. DHCP REQ

    DHCP RESP with Fake DNS Server

    DNS Req DNS Req

    DNS Resp

    DNS Resp = IP a_acker server1 + IP a_acker server2 + DNS Resp Short TTL

    SYN port=xxx

    RST ACK port =xxx

    SYN port=xxx SYN port=xxx

    SYN ACK port=xxx

    SYN ACK port=xxx

    DATA DATA

  • On port 80 the a_acker can put a invisible proxy.

    The a_acker can reject SSL ports always because the client will later connect to the real server.

    Other connec

  • dns2proxy (s
  • Improve the aTack.

  • DEMO (or video if demo eect ;)

  • Limited of hosts intercep
  • SSLStrip vs HSTS.

  • Strict Transport Security based in domain names predened or not.

    Change HTTPS to HTTP. Also change domain names to connect based on

    predened rules. DNS Server can resolve based on these predened

    rules. HSTS. h_ps://github.com/LeonardoNve/sslstrip2.git

    SSLStrip+ to defeat HSTS.

  • DEMO (or video if demo eect)

  • With UDP the applica
  • Use other a_acks against SSL (Beast, Crime,). A_ack SSL implementa
  • Other scenario.

  • Improve DNS server congura
  • THANKs.

    Ramon Pin

    uaga

    Jose Selvi

    Abel Gomez

    Olga Solera

    Floren Molin

    a

    Farid Fadaie

    Moxie Marlin

    spike

    Miguel Hernandez

    Hannibal Ngu

    Maia Nve