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
- median public bounty
- $750
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.
Seen in these reports12
-
$750 High -
-
Show 5 moreShow fewer
-
Low -
Low -
Medium -
Medium
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.
Seen in these reports14
-
$14,009 -
$8,500 -
Show 5 moreShow fewer
-
-
Medium -
Low -
Medium
Year by year
3 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2013 | 1 |
|---|---|
| 2015 | 1 |
| 2018 | 2 |
| 2020 | 2 |
| 2021 | 3 |
| 2022 | 1 |
| 2024 | 2 |
| 2025 | 5 |
| 2026 | 6 |
-
2026
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.
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.
-
2025
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.
-
2021
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.
Where it is found
3The features and places the reports found it in, most-reported first.
-
Android WebView components in mobile apps, including those reached through exported activities and deep links.
Seen in 3 reports
-
Android-specific Chromium behaviours where web pages trigger intents to other apps.
Seen in 3 reports
-
iOS WebView and in-app browser components, including JavaScript bridges and address bars.
Seen in 2 reports
Technologies in these reports5
Root causes
16The mistakes in the code or configuration behind the reports.
-
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
-
Host validation used a substring check instead of an exact match or proper suffix check, so any host containing the trusted string passed.
-
JavaScript was enabled in a WebView without restricting which pages could load or limiting the exposed interfaces to safe ones.
Seen in 1 report
-
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
-
The JavaScript interface exposed by the WebView did not restrict which apps could be launched or validate the caller.
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-
Seen in 1 report
JavaScript bridges and native interfaces
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Exported activities and intent extras
of 3 ticked-
Seen in 6 reports
-
Seen in 3 reports
-
Seen in 2 reports
Deep links and URL parameters
of 3 ticked-
Seen in 4 reports
-
Seen in 1 report
Bypasses and variations
2How reports got past filters, encoders and other defences.
-
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
-
The server-side URL allowlist check for a deep link was bypassed by adding extra parameters.
Payouts
5 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| High | 1 | 1 | $750 | $750 |
| Medium | 6 | 1 | $200 | $200 |
| Low | 4 | 1 | $600 | $600 |
| Unrated | 22 | 2 | $11k | $14k |
Highest-paid reports5
-
$14,009 -
$8,500 -
$750 High -
$600 Low
-
$200 Medium
Tips for beginners
13Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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
-
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
-
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
Guides and techniques
The best explainers, cheat sheets and technique posts on WebView flaws, from around the web.
-
Android security checklist: WebViewOversecured checklist covering Android WebView misconfigurations that expose apps to attacks.
Methodology blog.oversecured.com
-
Exploiting Request forgery on Mobile ApplicationsExplains how deep links in mobile apps enable request forgery, covering CSRF and SSRF style attacks on Android.
Technique dphoeniixx.medium.com
-
Exploiting new-era of Request forgery on mobile applicationsExplores request forgery through mobile deep links, covering client and server side exploitation paths.
Technique web.archive.org
-
Pentesting Electron ApplicationsMethodology for assessing Electron applications, covering framework specific weaknesses and how to exploit them during tests.
Methodology yeswehack.com
-
Android - PentestBookPentestBook Android section collects commands and checklists for assessing Android applications during mobile engagements.
Cheat sheet github.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
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.