Skip to content
Access control Write-up Beginner

Exported Components - Kickin’ Down the Doors Devs Left Unlocked

The article demonstrates that exported Android components (activities, services, broadcast receivers, content providers) lack proper access controls, allowing an attacker to bypass authentication, access premium features, trigger credential-leaking broadcasts, and dump user data. It uses a modified InsecureBankv2 app to show these attacks via ADB and Drozer.

Slayer_15 Follow

Published on medium.com

In Part 3, we scoped the building. We dug through the AndroidManifest.xml, spotted the usual sins (debuggable flags, backup flags), and I also showed the doors developers forgot to lock - exported components.

Slayer_15, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, developers mark components as exported without enforcing authentication or permission checks inside the component, trusting that only the app's own UI will invoke them.

Impact

An attacker could bypass authentication, access premium features without payment, cause the app to send stored credentials via SMS, and dump private user data from an exported content provider.

What the attacker needed

Android device or emulator with the target app installed; ADB access to the device; Drozer installed on host and agent on device; Target app has exported components without permission checks

The fix

Developers should set android:exported="false" for components that do not need to be accessed by other apps, and for those that must be exported, enforce authorization checks and validate the caller inside the component.

How it was found

  1. Install Drozer on the host and the Drozer Agent on the device, then connect via adb forward and drozer console connect.
  2. Use Drozer to enumerate exported components, e.g., run app.activity.info -a com.example.app.
  3. For an exported activity like PostLogin, launch it directly with adb shell am start -n com.android.insecurebankv2/.PostLogin to bypass authentication.
  4. For an exported service like DownloadService, start it with adb shell am startservice -n com.movie.app/.DownloadService -e url "http://secret-movie.mp4" to download premium content.
  5. For an exported broadcast receiver, send a broadcast with the required extras using Drozer: run app.broadcast.send --action theBroadcast --extra string phonenumber 123456789 --extra string newpass slayersuperpass, causing the app to send…
  6. For an exported content provider, query it directly with adb shell content query --uri content://com.android.insecurebankv2.TrackUserContentProvider/trackerusers to dump user data.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Android apps are built from components like screens (activities) and background workers (services). If a component is marked as 'exported', any other app on the phone can start it or send it messages. This article shows that when developers forget to add permission checks, attackers can jump straight to sensitive screens or make the app leak data.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.