iasi code camp 20 april 2013 playing buggy-bogdan-alecu

43
Playing boogie buggy Bogdan ALECU

Upload: codecampiasi

Post on 26-May-2015

127 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Playing boogie buggy

Bogdan ALECU

Page 2: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Topics

▪ About me

▪ The buggy world

▪ Where does your data go?

Bogdan ALECU

Page 3: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

About me

Bogdan ALECU

▪ Independent security researcher

▪ Sysadmin @ LEVI9

▪ Passionate about security, specially when it’s related to mobile devices, CISSP, CEH, CISA,CCSP

▪ #infosec conferences: DeepSec, DefCamp, EUSecWest

▪ Started with NetMonitor, continued with VoIP and finally GSM networks / mobile phones

▪ @msecnet / www.m-sec.net / [email protected]

Page 4: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Developers

▪ Testers

▪ Customers

▪ How do you test?

▪ But is it enough?

Page 5: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

READY FOR SOME REAL LIFE EXAMPLES?

Page 6: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 7: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 8: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 9: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 10: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

NEVER trust the user’s input!

Page 11: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 12: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

NEVER trust the user’s input!

Page 13: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 14: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

NEVER trust the user’s input!

Page 15: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 16: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ 20K application

▪ Two factor authentication

▪ ACL IP

▪ User authenticated automatically if …

… coming from the right internal IP

Page 17: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

PLEASE CHECK YOUR

ERS

Page 18: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ How was the IP address checked?

Page 19: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ X-FORWARDED-FOR HTTP header

Page 20: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Modify Headers – Firefox Extension

▪ https://addons.mozilla.org/en-US/firefox/addon/modify-headers/

Page 21: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 22: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Try accessing the website while pretending to be browsing from your mobile device

▪ You would be surprised of the instant access you get

▪ No luck? Try Googlebot!

▪ If your log shows a sensitive access being made by GoogleBot, will you worry ?

Page 23: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Those damn headers …

DEMO time

Page 24: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Having the right headers (security by obscurity) can open a lot of doors

Page 25: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Those damn headers … AGAIN!

Yet another demo

Page 26: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ Don’t bullshit me: admit your weakness!

Page 27: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪Implementation gone wild

▪ How many of you use the Internet on your mobile device?

▪ Do you know what DNS is?

Page 28: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Setup a VPN server on port 53, UDP (DNS port)

… and connect to your server

… pass the traffic to the Internet

UNLIMITEDMOBILE DATA TRAFFIC!

Page 29: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 30: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ The standard itself may have issues

Page 31: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ SIM Toolkit

Page 32: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ SIM Toolkit

Page 33: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ SIM Toolkit

▪ Vulnerability discovered in June 2010

▪ Reported on August 26 2010

▪ CVE-2010-3612

Page 34: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 35: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

Page 36: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ SIM Toolkit

… and the demo

Page 37: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The buggy world

Bogdan ALECU

▪ FIX THIS NOW!

Page 38: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Where does your data go?

Bogdan ALECU

Page 39: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Where does your data go?

Bogdan ALECU

▪ Is the data securely transferred?

▪ What info is the app sending?

▪ When does it sends the info?

▪ Does the app accept any certificate?

▪ What is it stored locally?

Page 41: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Where does your data go?

Bogdan ALECU

▪ Short demo

Page 42: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

Call to action

Bogdan ALECU

▪ Don’t rely on thing that most users have no idea how to check if your app is secure. You might meet someone like me and it will get ugly

▪ Write your code in a secure way

▪ Testers: learn how to really tests mobile apps. It’s not all about the usage experience!

Page 43: Iasi code camp 20 april 2013 playing buggy-bogdan-alecu

The end?!?

Bogdan ALECU

Thank you all!

Don’t forget about feedback forms

www.m-sec.net / @msecnet