Android intent spoofing and unintended component access
Android intents can carry untrusted instructions into components that perform privileged work. Understanding Android intent spoofing and unintended component access helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Browser security is influenced by origins, embedded content, messaging and the way returned data is interpreted. A server can make a correct decision while client-side code later exposes the result to an unintended page or execution context.
Android apps commonly use implicit intents when they intentionally delegate an action to another app selected by the system or the user. Typical legitimate uses include opening a web page or map location with ACTION_VIEW, sharing content with ACTION_SEND, requesting a file or image with ACTION_GET_CONTENT, or launching a chooser when the app does not need to control which external app handles the request.
The issue appears when an app uses the same mechanism for communication that is expected to stay inside the app, such as starting an internal activity or sending an app-specific action to another trusted component. In that case, intent hijacking can occur: a third-party app declares a matching for the same action and becomes a candidate during Android's intent resolution. If the system presents a chooser, the user may select the third-party app; if only one matching handler exists or a default handler has been set, the intent may be delivered without an explicit user decision.
Why it matters
Consider a realistic failure: a forged intent supplies a destination URL to a component that sends authenticated requests.
A browser trust failure can affect signed-in users, private responses or actions taken with a user's session. The assessment should identify the relevant browser behaviour and the server-side permissions that remain in force.
Mobile behaviour can change between a fresh installation, an authenticated session, background activity and a device migration. The assessment needs the actual release and representative supported device states.
How penetration testers check for it
Check explicit destinations, exported receivers, extras and caller permissions.
- Check whether the intent has an explicit component or package.
- Check whether another app can declare or register a matching for the action, data, and categories.
- For broadcasts, check whether the sender requires a permission that prevents untrusted receivers from receiving it.
- Check whether the intent is meant for an app component or another trusted app, not a user-selected external app.
- Trace untrusted data into rendering and navigation.
- Check credentialed requests and sensitive state changes.
How to fix it
Use narrowly scoped intents and validate inputs at each privileged receiving component.
- Keep trusted and untrusted content in appropriate contexts.
- Use safe rendering and precisely scoped browser policies.
- Validate messaging origins and intended recipients.
- Retain independent server-side identity and permission checks.
A policy finding needs application context. The absence of a particular header or browser feature is not, by itself, proof that protected data can be accessed.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Android manifest and exported component security review
- Android content provider data access and injection risks
- Scoping IoT penetration tests by device component and access level
Read about our methodology or contact pentested.com to discuss your mobile applications.