• Aucun résultat trouvé

How to build Big Brother With blackjack and h--kers

N/A
N/A
Protected

Academic year: 2022

Partager "How to build Big Brother With blackjack and h--kers"

Copied!
60
0
0

Texte intégral

(1)

Yunusov Timur,

Senior expert, Head of dept

(2)

Yunusov Timur,

Senior expert, Head of dept

(3)

When/Who/Where/And why???

•  2014-2015

(4)

•  2014-2015

•  «root via SMS» SCADA Strange Love h@ps://youtu.be/T9AFFIVpCa8

•  Russia and the whole world

(5)

When/Who/Where/And why???

•  2014-2015

•  «root via SMS» SCADA Strange Love h@ps://youtu.be/T9AFFIVpCa8

•  Russia and the whole world

•  Cause nobody cares(((

(6)
(7)

Boring numbers

•  >10 (8 diff) 3G/4G modems/routers

•  75% vulns to RCE/fw modifica]on

•  60% RCE are 0days

(8)

•  ~60 000 devices/1M/Telco

•  5000 devices/1W/SecurityLab

•  100% vulns to RCE/fw modifica]on

(9)

How?

(10)

+

(11)

How?

1. Iden]fica]on 2. Code injec]on

3. Data intercep]on

4. SIM cloning / GSM A@acks 5. Host Infec]on

6. APT

7. Return to 1.

(12)
(13)

Iden]fica]on

•  WHOIS?

(14)

<img src="h@p://192.168.0.1/img/1.png"

style="height:0;width:0;"

onload="set('1')">

<img src="h@p://192.168.0.1/img/2.jpg"

style="height:0;width:0;"

onload="set('2')">

<img src="h@p://hostname/img/3.png"

style="height:0;width:0;"

onload="set('3')">

<img src="h@p://127.0.0.1:5000/request"

style="height:0;width:0;"

onload="set('4')">

(15)

Iden]fica]on

•  GeoIP?

(16)

•  Public exploits + old FW

•  Blackbox

•  FW Access + FW RE + IDA

•  FW modifica]on + Arbitrary upload

(17)

Code Injec]on

•  Public exploits + old FW

(18)

•  Blackbox

•  ?ac]on=ping||shutdown –r 0||

•  ?date=;ping blahblah.com;

(19)

Code Injec]on

•  Blackbox

(20)

•  FW Access + FW RE + IDA

•  Gree]ngs:

•  Kirill Nesterov,

•  Dmitry Sklyarov

(21)

Code Injec]on

•  FW modifica]on + Arbitrary upload

(22)

•  FW modifica]on + Arbitrary upload

•  Integrity a@acks

(23)

Code Injec]on

•  FW modifica]on + Arbitrary upload

•  Integrity a@acks

•  Remote upload (CSRF/XSS)

(24)

•  FW modifica]on + Arbitrary upload

•  Integrity a@acks

•  Remote upload (CSRF/XSS)

•  Local upload (diag mode)

(25)

Code Injec]on

•  FW modifica]on + Arbitrary upload

•  Integrity a@acks

(26)

•  FW encrypted via RC4

•  RSA Digital Signature +SHA1

(27)

FW Integrity Control

(28)

•  FW encrypted via RC4

(29)

FW Integrity Control

•  FW encrypted via RC4

•  Constant keystream FAIL

•  Part1 XOR Part2 FAIL

•  FW1 XOR FW2 FAIL

•  Lot of plaintext (CDROM) FAIL

(30)

•  FW encrypted via RC4 FAIL

(31)

FW Integrity Control

•  RSA Digital Signature +SHA1

•  AR: !<arch>:

•  FW

•  pkginfo: <7742526>

•  Sign=RSA(SHA1(FW[0..7742526]))

(32)

•  RSA Digital Signature +SHA1

(33)

FW Integrity Control

•  RSA Digital Signature +SHA1

•  ar --add data.tar.gz

•  ar -v

•  data.tar.gz

•  sign

•  pkginfo

•  data.tar.gz

(34)

•  RSA Digital Signature +SHA1 FAIL

•  ar --add data.tar.gz

•  ar -v

•  data.tar.gz

•  sign

•  pkginfo

•  data.tar.gz

(35)

FW upload/CSRF

h@p://blog.kotowicz.net/2011/04/

how-to-upload-arbitrary-file-contents.html

(36)

•  HUAWEI PSIRT 436642 (2015-05-29)

h@p://www1.huawei.com/en/security/psirt/security- bulle]ns/security-no]ces/archive/hw-436642.htm

(37)

Data intercep]on

•  Cell ID

•  WiFi

•  SMS

•  HTTP

•  SSL

(38)

•  Cell ID

•  h@p://opencellid.org/ + XSS

(39)

Data intercep]on

•  WiFi

(40)

•  SMS

(41)

Data intercep]on

•  HTTP

•  ARP-spoofing

•  DNS-spoofing

(42)

•  SSL

•  Host RCE

(43)

SIM Cloning

•  Fake BTS + Binary SMS

•  GEO(!)

•  IMSI

h@ps://media.blackhat.com/us-13/us-13-Nohl-Roo]ng- SIM-cards-Slides.pdf

(44)

•  Use The Force

(45)

SIM Cloning

•  Diag mode

(46)

•  Send AT commands

•  AT+CMGF=0

(47)

•  Huawei: Remote(!) osmocomm for beggars

•  VxWorks on baseband hi6920 ― Loaded by Linux

― Packed on flash

― dmesg => load vxworks ok, entey 0x50d10000 ― Cshell

• OS communica]on • Buil]n debuger

― Nearly all names of objects/func]ons ― POSIX + documenta]on

(48)

•  BadUSB

•  Fake diagnos]c tools/CDROM

•  HTML Injec]on + 0day

•  Even real diagnos]c tools =))

(49)

Host Infec]on

•  BadUSB

•  Android gadget driver

(supported_func]ons patching)

•  HID Gadget onboard!

•  Lots of boring stuff

(50)

•  Drive By Download

•  CDROM

(51)

Host Infec]on

•  HTML Injec]on + 0day

(52)

•  Kudos to @cyberpunkych

•  Lots of other stuff at yota.hlsec.ru

•  But nobody cares(((

(53)

APT

(54)
(55)

•  Subscribers a@acks Subscribers APT

•  LISTEN 0.0.0.0:80

•  Firewalls

(56)
(57)

Fun numbers

•  Remote Code Execu]on via WEB: 5 dev

•  Arbitrary FW modifica]on (rem/loc): 6 dev

•  CSRF: 5 dev

•  XSS: 4 dev

(58)

DEMO

(59)

Kudos

•  @cyberpunkych

•  D. Sklyarov

•  K. Nesterov

•  Al. Osipov

•  @SCADASL

(60)

Références

Documents relatifs

Definition G has Property PW if there exists on G a proper cardinal definite function and has Property FW if every cardinal definite function on G is bounded (or equivalently if

WATSON, A treatise on thé theory of Bessel functions, Cambridge University Press, 1922..

In this study we combine industry &amp; academic (grey) literature resources, including business case descriptions, with interviews held with founding team members

We employed three different technologies for the fabrication of elements with an arbitrary surface profile: direct laser writing in photoresist, binary mask lithography in

By model checking the CLTS model of a MANET in which the nodes deploy a routing protocol, we can verify this property with respect to arbitrary topology changes.. This property

Aliasing issues are solved by using both a Bornat-like memory model [7], so as to automatically distinguish integer words from pointer words, and frame predicates in specifications,

The response shows understanding of the difference in the way that Gideon Mantell and scientists today think the Iguanodon walked or stood. What Gideon Mantell

Process: Focus on and Retrieve Explicitly Stated Information 1 – Acceptable Response.. The response indicates that Jack is a/an old