the age of mobile app insecurities - hackcon aditya modha - the age of... · the age of mobile...

26
The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Upload: others

Post on 02-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

The Age of Mobile Application Insecurities

Aditya Modha Lucideus Tech Pvt. Ltd.

Oslo, Feb’ 2016

Page 2: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Who am I

Lucideus Tech Pvt. Ltd.

Security Analyst

Infosec Trainer

I blog at oldmanlab.blogspot.com

I tweet at @oldmanlab

Page 3: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

What is this talk all about

Lucideus Tech Pvt. Ltd.

Vulnerabilities in Mobile Applications

Failed or Inadequate Patches

Some Numbers

Page 4: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Why this talk

source: www.statista.com Lucideus Tech Pvt. Ltd.

1,600,000

1,500,000

400,000 340,000

130,000

0

250,000

500,000

750,000

1,000,000

1,250,000

1,500,000

1,750,000

Google Play Apple App Store Amazon Appstore Windows PhoneStore

Blackberry World

Number of Apps in various Application Stores

Page 5: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Why this talk

source: www.statista.com Lucideus Tech Pvt. Ltd.

2,516 4,507

21,646

63,985

102,062

138,809

179,628

224,801

268,692

0

50,000

100,000

150,000

200,000

250,000

300,000

2009 2010 2011 2012 2013* 2014* 2015* 2016* 2017*

In M

illio

ns

Number of Apps Downloaded by Smartphone Users

Page 6: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Why this talk

Lucideus Tech Pvt. Ltd.

The number of Android vulnerabilities has increased 188% compared to 2011.

The number of iOS vulnerabilities has increased 262% compared to 2011.

31% of the Google Play apps that have more than 50,000 downloads contain remote exploitable vulnerabilities.

Gartner says more than 75% of Mobile Applications will fail basic security tests through 2015.

https://www.fireeye.com/blog/executive-perspective/2015/02/state_of_mobile_secu.html

Page 7: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Common Vulnerabilities

Lucideus Tech Pvt. Ltd.

M1 – Weak Server Side Controls

M5 – Poor Authorization and Authentication

M2 – Insecure Data Storage

M6 – Broken Cryptography

M9 – Improper Session Handling

M3 – Insufficient Transport Layer Protection

M7 – Client Side Injection

M10 – Lack of Binary Protections

M4 – Unintended Data Leakage

M8 – Security Decisions Via Untrusted Input

OWASP TOP 10 Mobile Risks

Page 8: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Total Reviewed Applications

Lucideus Tech Pvt. Ltd.

Travel

Entertainment

Communication

Business

Finance

Health & Fitness

Medical

News & Magazine

25 Apps in each category

Apps of the Android and iOS platform

Total 8 categories

25 x 8 x 2 = 400 Apps

C A T E G O R I E S

Page 9: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Apps Category v/s Vulnerability %

Lucideus Tech Pvt. Ltd.

Business 14%

Communication 13%

Entertainment 14%

Finance 10%

Health & Fitness 11%

Medical 10%

News & Magazine 13%

Travel 15%

Page 10: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Top Vulnerabilities

Lucideus Tech Pvt. Ltd.

Local PII Storage

Insecure SSL Verification

Insecure (Weak) Algorithm

Local Authentication

Local Password Storage

Hardcode Encryption Key

Credentials over HTTP

Un-Obfuscated Code

24%

4%

46%

2%

4%

2%

17%

55%

% of total apps

Page 11: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Exhibits

Lucideus Tech Pvt. Ltd.

Page 12: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Cleartext credential transmission

Page 13: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Un-obfuscated Code

Page 14: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Defeats 2-Factor Authentication

OTP code in HTTP response

Page 15: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Cached request/response data

Page 16: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Local password store in plaintext

Page 17: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

In-app purchase bypass through receipt spoofing

Page 18: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Local PII data storage

Page 19: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Lucideus Tech Pvt. Ltd.

Insecure SSL verification

Page 20: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Demo

Lucideus Tech Pvt. Ltd.

Page 21: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Common Best Practices Followed

Lucideus Tech Pvt. Ltd.

18% SSL Pinning

Encrypted Parameters

15% Binary Protection

2%

Page 22: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Security Best Practitioner

Lucideus Tech Pvt. Ltd.

18

33

7

20

0

13

6

3

0

5

10

15

20

25

30

35

40

In Percentage

Page 23: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Inadequate or Failed Patches

Lucideus Tech Pvt. Ltd.

Developers prevent access control issues by encrypting the value of key identifier parameter

Page 24: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Inadequate or Failed Patches

Lucideus Tech Pvt. Ltd.

And then they store the encryption key, hardcoded, in the application code

Page 25: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Questions?

Lucideus Tech Pvt. Ltd.

Page 26: The Age of Mobile App Insecurities - HackCon Aditya Modha - The Age of... · The Age of Mobile Application Insecurities Aditya Modha Lucideus Tech Pvt. Ltd. Oslo, Feb’ 2016

Thank You