Skip to content
Access control Write-up Intermediate

We found 24 Android vulnerabilities using our open source AI security agent

The OsmAnd Android app exported an activity that accepted attacker-controlled intent extras, allowing any app to silently import settings and redirect map tile requests to an attacker server. This let a malicious app track the victim's location and routes without any visible change.

github.blog

Published on github.blog

Kevin Stubbings·@kwstubbs

Kevin Stubbings, on github.blog

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

The exported activity trusted intent extras that should only have come from an internal service, and Android does not restrict which extras an external caller can set.

What the attacker needed

Victim has OsmAnd installed; attacker app installed on same device; no special permissions needed

How it was found

  1. A malicious app sends an intent to the exported MapActivity with extras that enable silent import and replacement of settings.
  2. The app imports attacker-chosen settings, including a new tile URL template pointing to the attacker's server.
  3. When the user views the map, the app requests tiles from the attacker's server, leaking the x and y coordinates of each tile.
  4. The attacker's server returns the corresponding OpenStreetMap tile so the user sees nothing unusual.
  5. The attacker can also capture route origin and destination data sent to their server.

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.

An Android app can make some of its screens (called activities) available for other apps to open. If such a screen also accepts extra data from the caller without checking who sent it, a malicious app can use that data to change the app's settings. Here, the navigation app accepted settings from any app, so an attacker could quietly redirect map downloads to their own server and learn where the user is.

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.