Skip to content
Access control Write-up Intermediate

What is this vulnerability?#

An exported Android activity accepted an extra that specified another component to launch, allowing an attacker to start non-exported activities. The attacker could then access a hidden file explorer activity to copy internal files, such as authentication tokens, to external storage.

DavMehtab Zafar Follow

Published on blog.mzfr.me

In the previous post I talked about what activities are and how we can exploit exported activities. In this post, I’ll show you how an attacker might be able to access the components which are protected i.e not exported.

DavMehtab Zafar (@0xmzfr), on blog.mzfr.me

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 the exported activity did not validate the component name supplied in an extra before using it to start another activity, enabling access to non-exported components.

Impact

An attacker could access non-exported components and copy sensitive internal files, such as authentication tokens, to external storage, potentially leading to account takeover.

What the attacker needed

Malicious app installed on the device; victim has the vulnerable app installed

How it was found

  1. Identify an exported activity that accepts an extra specifying a component to launch.
  2. Craft an intent to that exported activity with the extra set to the target non-exported component.
  3. Send the intent using adb or a malicious app.
  4. The exported activity starts the non-exported component, which performs actions like copying files.

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 have parts called activities that can be marked as 'exported' (accessible to other apps) or 'not exported' (only usable within the app). This report shows that an exported activity could be tricked into launching a non-exported activity, which then allowed copying private files to a place the attacker could read.

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.