Book Image

Mobile Application Penetration Testing

By : Vijay Kumar Velu
Book Image

Mobile Application Penetration Testing

By: Vijay Kumar Velu

Overview of this book

Mobile security has come a long way over the last few years. It has transitioned from "should it be done?" to "it must be done!"Alongside the growing number of devises and applications, there is also a growth in the volume of Personally identifiable information (PII), Financial Data, and much more. This data needs to be secured. This is why Pen-testing is so important to modern application developers. You need to know how to secure user data, and find vulnerabilities and loopholes in your application that might lead to security breaches. This book gives you the necessary skills to security test your mobile applications as a beginner, developer, or security practitioner. You'll start by discovering the internal components of an Android and an iOS application. Moving ahead, you'll understand the inter-process working of these applications. Then you'll set up a test environment for this application using various tools to identify the loopholes and vulnerabilities in the structure of the applications. Finally, after collecting all information about these security loop holes, we'll start securing our applications from these threats.
Table of Contents (15 chapters)
Mobile Application Penetration Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

SQL injection


As we know, a majority of mobile apps run on HTML5 technology. Client-side storage has been increasingly used for user-specific data. The impact of SQL injection will be more if the application is designed to have more than one account. In order to demonstrate this vulnerability, we will be using the DVIA app that we downloaded, and we will install it to Genymotion by running the adb install command.

Once the app is installed, select 7. Input Validation Issues – Part 1, as shown in the following screen capture:

If you go ahead and inject the SQL injection query ' OR 1=1--, you can see all the data inside the database is displayed, as shown in this screenshot:

This attack is a local SQL injection on the lightweight mobile database SQLite. Attacks against WebView and local storage are categorized under the M7- Client-Side Injections subsection of the OWASP mobile top 10 risks section (Chapter 1, The Mobile Application Security Landscape).

If the same SQL injection attack is used...