Tech Blog

Testing

Android Pentesting with Drozer Part 2

By Karapureddy Yeswanth Reddy2 min read
← Back to blog

Exploitation of Content Providers:

Content providers facilitate an application’s access and management of data either in its own SQLite database or in files. 

There are two types of commonly used content providers: 

1. Database-backed

2. File-backed. 

Content providers act as standardized bridges between data from one process and code from another, enabling specific applications to utilize the interface of your content provider to access the database or file-backed provider operating within your own application.

  1. This module app.provider.info enumerates information about content providers in an application.

cmd: “run app.provider.info -a com.mwr.example.sieve”

We can observe that the content provider is being “exported”. This means nothing but shows that “it can be accessed by other applications”.

  1. The ability to read and write unveils an interesting avenue. The module app.provider.finduri identifies all content providers that can be queried in an application.

cmd: “run app.provider.finduri com.mwr.example.sieve”

  1. The scanner.provider.finduris module is used to check queriable content providers and there is another module that filters out the URI that may/ may not be queried.

cmd: “run scanner.provider.finduris -a com.mwr.example.sieve”

  1. This module app.provider.columns exhibits the columns existing in the content provider.

cmd: “run app.provider.columns content://com.mwr.example.sieve.DBContentProvider/Keys/”

This module app.provider.read can execute various actions on file-backed content providers and also helps to perform directory traversal, read files, and perform other similar functions on supported providers. 

cmd: “run app.provider.read content://com.mwr.example.sieve.DBContentProvider/Keys/”

The module app.provider.query helps us for understanding the data that an app stores and shares with other components or apps on the device.

Cmd: 

“run app.provider.query content://com.mwr.example.sieve.DBContentProvider/Keys/”

One of the above commands disclosed the Password and Pin registered by the user.

Keep reading

You may be interested in

Browse all articles →
Software Testing: Challenges and Solutions
February 8, 20244 min read

Software Testing: Challenges and Solutions

Introduction – Testing software is a crucial aspect of the development process. It makes sure that the product’s functionality works as expected, fulfills the user requirements, and makes sure it works without errors. In this blog, we will list down some of the most common challenges faced in software testing and conclude with how to […]

By Saboor ChandshahaRead More →
Streamlining Software Quality: The Power of Automating Black Box Testing
February 8, 20244 min read

Streamlining Software Quality: The Power of Automating Black Box Testing

Introduction :  In the dynamic realm of software development, ensuring the robustness and reliability of applications is of paramount importance. Black box testing, a technique that assesses software functionality without requiring knowledge of its internal code, plays a vital role in identifying potential defects. As the complexity of software systems continues to escalate, the manual […]

By Anthony Gilchrist G SRead More →
Implementing best practices for end-to-end testing in cloud migration
January 31, 20245 min read

Implementing best practices for end-to-end testing in cloud migration

Importance of End-to-End Testing Assume an organization’s core systems are now hosted on the cloud—a complex ecosystem linked by data threads. End-to-end testing is the foundation upon which the reliability and performance of this interconnected web is built. This rigorous testing technique makes it possible to detect vulnerabilities, optimize operations, and improve user experience. Active […]

By Rahul ChakravartiRead More →