Skip to content

In-depth lesson · technique

WebView flaws

What every disclosed WebView flaws report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
35

Learning Mobile apps, step 3

Overview

What it is and why programs pay for it.

WebView flaws are a class of mobile app vulnerabilities where an app's embedded browser component loads untrusted content or exposes native functionality to web pages. Programs care because these flaws can lead to phishing, token theft, local file disclosure, or access to device APIs, all within the context of a trusted app. They often arise when exported activities or deep links pass attacker-controlled URLs into a WebView without proper validation, or when JavaScript bridges are exposed too broadly.

These issues are most commonly found in Android apps that use WebView components, especially those with exported activities or deep link handlers that accept URL parameters. iOS apps with in-app browsers or JavaScript bridges are also affected. The root causes include missing or weak URL validation, substring-based host checks, enabling JavaScript without restrictions, and exposing JavaScript interfaces to all loaded pages.

What these flaws usually lead to depends on the app's privileges: an attacker might load a phishing page inside the app, steal authentication tokens, read local files, or invoke native methods through a JavaScript bridge. Some cases allow bypassing same-origin policy or launching other apps. Hunters should focus on exported components and deep links that handle URLs, and on WebViews that enable JavaScript or expose bridges.

How it works

The mechanics, as the reports show them.

The core issue is that an app accepts a URL from an untrusted source, such as an intent extra or a deep link parameter, and loads it into a WebView without validating the scheme or host. This can happen in exported activities that are reachable by any app on the device, or in deep link handlers that can be triggered from a browser or other app. If the WebView has JavaScript enabled and exposes a JavaScript interface, the loaded page can call native methods.

Validation is often flawed: a common mistake is to check only that the host contains a trusted string, rather than performing an exact match or proper suffix check. This allows an attacker to use a domain like trusted.com.evil.com or evil.com/trusted.com to bypass the check. Similarly, some apps check only the URL prefix or allow plain HTTP, which can be intercepted.

JavaScript bridges are a key enabler: when an app registers a native object with addJavascriptInterface, that object is accessible to all frames and origins loaded in the WebView. If an attacker can load their own page, they can call the bridge's methods to perform actions like reading files, launching apps, or exfiltrating data. Older APIs are especially dangerous because they are not scoped to a single frame or origin.

Deep links and intent handling add another layer: apps may trust custom schemes or intent URIs that can be triggered from web pages. If the app does not require user activation or show an origin prompt, a malicious page can silently launch other apps or load attacker-chosen URLs. In some cases, intent URIs can carry URI permission grant flags that are not stripped, leading to file access.

On iOS, similar issues exist with in-app browsers and JavaScript bridges. The address bar may be updated before navigation is confirmed, or the displayed hostname may be normalised differently from the requested host, enabling spoofing. JavaScript bridges can be overridden by attacker pages to capture tokens or messages.

Year by year

3 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 6
Reports per year
20131
20151
20182
20202
20213
20221
20242
20255
20266
  1. 2026

    6 reports

    New this year4

    • Reports increasingly involved JavaScript bridges exposed to loaded pages, with bypasses of bridge authentication and wildcard domain trust.
    • Android-specific Chromium behaviours where web pages trigger intents to other apps appear as a distinct target.
    • Calling a bridge's build-identity method from a sandboxed third-party iframe with a fabricated payload and observing whether it was accepted into the crash-reporting pipeline appears as a new technique.
    and 1 more

    Kept working8

    • Enumerating exported activities and starting each with an intent carrying an attacker URL showed which ones passed it to an internal WebView.
    • Using ADB to start an exported WebView activity with a URL extra pointing at a controlled site showed the app content being replaced with a phishing page.
    and 6 more
  2. 2025

    5 reports

    New this year2

    • Reports increasingly involved JavaScript bridges exposed to loaded pages, with bypasses of bridge authentication and wildcard domain trust.
    • Testing whether a WebView's same-origin policy could be bypassed to read internal app files from a loaded page appears as a distinct technique.

    Kept working4

    • Enumerating exported activities and starting each with an intent carrying an attacker URL showed which ones passed it to an internal WebView.
    • Passing data: and javascript: URLs as a URL extra to a navigation activity revealed that the scheme was not checked before the WebView loaded it.
    and 2 more
  3. 2021

    3 reports · median $750

    Kept working5

    • Hunters found that deep-link handlers passed URLs into WebViews without checking the host or scheme, so an external site could open inside the app with the session attached.
    • Enumerating exported activities in the manifest and starting each with an intent carrying an attacker URL revealed which ones passed it to an internal WebView.
    and 3 more
Every point, year by year

Where it is found

3

The features and places the reports found it in, most-reported first.

  1. Android WebView components in mobile apps, including those reached through exported activities and deep links.

    Seen in 3 reports
  2. Android-specific Chromium behaviours where web pages trigger intents to other apps.

    Seen in 3 reports
  3. iOS WebView and in-app browser components, including JavaScript bridges and address bars.

    Seen in 2 reports

Technologies in these reports5

Root causes

16

The mistakes in the code or configuration behind the reports.

  1. The exported deep-link handler passed an attacker-controlled URL straight into a WebView without validating the destination or restricting which hosts may load.

    Seen in 5 reports
  2. Host validation used a substring check instead of an exact match or proper suffix check, so any host containing the trusted string passed.

    Seen in 2 reports
  3. JavaScript was enabled in a WebView without restricting which pages could load or limiting the exposed interfaces to safe ones.

    Seen in 1 report
  4. The address bar was refreshed before the navigation result was confirmed, and the displayed hostname was normalised differently from the hostname used for the request.

    Seen in 1 report
  5. The JavaScript interface exposed by the WebView did not restrict which apps could be launched or validate the caller.

    Seen in 1 report
View all 16

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

URL and host validation bypasses

of 3 ticked
More in URL and host validation bypasses

JavaScript bridges and native interfaces

of 3 ticked
More in JavaScript bridges and native interfaces

Exported activities and intent extras

of 3 ticked
  • Seen in 6 reports
  • Seen in 3 reports
  • Seen in 2 reports
More in Exported activities and intent extras

Deep links and URL parameters

of 3 ticked
More in Deep links and URL parameters
View more things to try

Bypasses and variations

2

How reports got past filters, encoders and other defences.

  1. A transparent navigation-bar branch of the deep-link router skipped the host check applied on other branches, so the same url parameter loaded unchecked.

    Seen in 1 report
  2. The server-side URL allowlist check for a deep link was bypassed by adding extra parameters.

    Seen in 1 report

Payouts

5 paid

Public bounties in US dollars, from the data. 5 of 33 reports show an amount.

a quarter paid up to
$600
median
$750
three quarters paid up to
$8,500
highest
$14k

One in ten paid reports was paid $12k or more.

SeverityReportsPaidMedianHighest
High 1 1 $750 $750
Medium 6 1 $200 $200
Low 4 1 $600 $600
Unrated 22 2 $11k $14k

Tips for beginners

13

Advice for a first hunt, drawn from the reports.

  1. If you find host validation, check for substring matching by using a domain that contains the trusted string, such as trusted.com.evil.com. Also test if the check is bypassed by adding extra parameters or using a different branch of the deep-link router.

    Seen in 4 reports
  2. Use ADB to start exported activities with a URL extra pointing to your own server, and see if the app loads your page. Check whether the WebView has JavaScript enabled and whether any JavaScript interfaces are exposed.

    Seen in 3 reports
  3. Test deep links that take a URL parameter: craft a link to your site and see if it opens inside the app with the app's session. Also try javascript: and file: schemes to test for script execution and local file access.

    Seen in 3 reports
  4. Look for JavaScript bridges: if a WebView exposes a bridge, try to call its methods from your loaded page. Common impacts include reading files, launching apps, or stealing tokens. Document the methods you can call and the data you can access.

    Seen in 3 reports
  5. Check for token leakage: if the WebView attaches an authorization header or passes a token to a JavaScript object, see if you can capture it on your server by loading your page through a deep link.

    Seen in 3 reports
View all 13

Guides and techniques

The best explainers, cheat sheets and technique posts on WebView flaws, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Related techniques

How this is made: our model read every listed WebView flaws report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 28 Nov 2026 from 35 reports. All WebView flaws reports.