Webview javascript

From zakirkun/ice-tea · View interactive version

Webview javascript is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects insecure Android WebView configurations enabling XSS, JavaScript bridge abuse, and remote code execution.

How to use this skill

Skill file

Android WebView JavaScript Risks

Overview

Android WebView is a powerful component that can be misconfigured to allow serious attacks:

  1. setJavaScriptEnabled(true) + addJavascriptInterface(): Creates a JavaScript bridge allowing web pages to call Java methods — RCE risk
  2. setAllowFileAccessFromFileURLs(true): JavaScript in file:// URLs can read other files
  3. Loading untrusted URLs: Loading attacker-controlled URLs with full bridge access
  4. setAllowUniversalAccessFromFileURLs(true): JavaScript in file:// can make cross-origin requests

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.