medium · M8 · MASVS-PLATFORM-1 · PTKD-CFG-EXPORTED
Exported component without a permission guard
A component is reachable by any other app on the device and is not protected by a permission. A launcher entry point is expected to be exported and is not reported.
How it is exploited
An exported activity/service/provider without a permission is a public entry point: any installed app can launch it, feed it intents, or query it. Exported providers frequently leak whole databases; exported activities skip your login wall.
Why it matters
Other apps on the device can read data or drive flows you assumed were internal.
How to fix it
- Set android:exported="false" on every component that does not need external callers.
- Where export is required, guard it with a signature permission and validate every incoming intent extra.
- For providers, prefer grantUriPermissions for scoped, temporary sharing over blanket export.
Guarding a component that must stay exported
<permission android:name="com.you.PERM" android:protectionLevel="signature"/>
<provider android:name=".DataProvider"
android:exported="true"
android:permission="com.you.PERM" .../>Does your app have this?
PTKD checks your build or your source project for PTKD-CFG-EXPORTED and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen