---
title: "CAPEC-503: WebView Exposure"
url: https://radicalnotion.ai/capec/capec-503
type: capec
description: "An adversary, through a malicious web page, accesses application specific functionality by leveraging interfaces registered through WebView's addJavascriptInterface API. Once an interface is registered to WebView through addJavascriptInterface, it becomes global and all pages loaded in the WebView can call this interface."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-503: WebView Exposure

- **Abstraction:** Standard
- **Status:** Draft
- **CAPEC catalog version:** 3.9

## Description

An adversary, through a malicious web page, accesses application specific functionality by leveraging interfaces registered through WebView's addJavascriptInterface API. Once an interface is registered to WebView through addJavascriptInterface, it becomes global and all pages loaded in the WebView can call this interface.

## Prerequisites

- This type of an attack requires the adversary to convince the user to load the malicious web page inside the target application. Once loaded, the malicious web page will have the same permissions as the target application and will have access to all registered interfaces. Both the permission and the interface must be in place for the functionality to be exposed.

## Mitigations

- To mitigate this type of an attack, an application should limit permissions to only those required and should verify the origin of all web content it loads.

## Related weaknesses (CWE)

- [CWE-284](https://radicalnotion.ai/cwe/cwe-284): Improper Access Control

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-122](https://radicalnotion.ai/capec/capec-122) | Privilege Abuse |

## Frequently asked questions

### What is CAPEC-503?

An adversary, through a malicious web page, accesses application specific functionality by leveraging interfaces registered through WebView's addJavascriptInterface API. Once an interface is registered to WebView through addJavascriptInterface, it becomes global and all pages loaded in the WebView can call this interface.

### How do you prevent CAPEC-503?

To mitigate this type of an attack, an application should limit permissions to only those required and should verify the origin of all web content it loads.

### What weaknesses does CAPEC-503 target?

CAPEC-503 exploits one CWE weakness: CWE-284 (Improper Access Control).

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/503.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-503). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
