Skip to content
Access control Write-up Beginner

Improper Access Control on * Android Application (com.*.partner)

An exported Android activity in a production app accepts a URL from an Intent extra and loads it in a WebView without any permission, signature or login check. Any co-installed app can launch it directly to render arbitrary content full-screen under the app's own title bar, which the author frames as a content-spoofing capability rather than a proven phishing chain.

Joko Purwanto Follow

Published on medium.com

com..home.WebViewClientActivity is exported, no android:permission, no signature check, no login check — nothing. It reads an Intent extra, weburl, and hands it straight to WebView.loadUrl() with no scheme or host check at all.

Joko Purwanto, on medium.com

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 activity is exported with no permission or caller check and passes a caller-supplied URL straight to WebView.loadUrl() without validating its scheme or host.

Impact

Any co-installed app can make the app render arbitrary content full-screen under its own title bar, which could support content spoofing or phishing, though no JS bridge exists so app data and native code are not reachable and no phishing outcome was demonstrated.

What the attacker needed

Malicious app co-installed on the device; no user interaction beyond one startActivity call

The fix

The activity should require a signature-level permission and validate the scheme and host of any caller-supplied URL before loading it.

How it was found

  1. Install the app fresh on an emulator and do not log in.
  2. Force-stop the app to rule out residual session state.
  3. Launch the exported activity directly by component name, passing a URL in the web_url extra.
  4. Confirm with dumpsys that the activity is the resumed activity.

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 are made of 'activities', which are screens. An app can mark a screen as 'exported', meaning any other app on the phone is allowed to open it. Here that screen takes a web address from whoever opens it and displays that page inside the app, so a malicious app installed on the same phone can make the real app show attacker-chosen content.

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.

More by Joko Purwanto

View all

3 more disclosed reports, best first.

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.