Case study
Location-based service attacks on Android
Location is one of the most sensitive things a phone knows, and Android hands it to apps through a web of runtime permissions, intents and shared components. This project builds deliberately vulnerable apps and the code that attacks them, so the mechanics of each weakness are visible rather than asserted.
The surface
Location-based services sit on top of exactly the parts of Android that are easy to get wrong: runtime permissions, intents passed between components, and services one app exposes to another. Each of those is a documented feature. Assembled around something as sensitive as a device’s position, they become a way in.
What it demonstrates
The project is a set of small Android apps, each built around one weakness and paired with the code that exploits it.
- Confused deputy — a privileged component is induced to use its own permissions on behalf of a caller that has none, so an app with no location access still ends up with the location.
- Insecure intent handling — intents that are implicit where they should be explicit, or that trust data they should validate, are redirected or injected into.
- Permission misuse — permissions requested too broadly, held too long, or handed to other components, widening what a single compromise reaches.
Each is a working demonstration rather than a description: the vulnerable app, the attacking app, and the path between them.
Why build it this way
A vulnerability class is easy to name and hard to feel. Building both sides — the flaw and the thing that exploits it — is what turns “insecure intent handling” from a phrase into a sequence you can step through. The same three classes appear far beyond location services; location is simply where the consequences are legible.