bedkillerspacex-boop/codex-skill-library/android-webview-security
Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Authorized Android WebView security review: JavaScript bridges (addJavascriptInterface), file URL access, universal access from file URLs, mixed content, SSL error handlers, and WebView XSS to native privilege. Use when reviewing owned apps, labs, and CTF APKs — not unauthorized third-party apps.
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-webview-securitySKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-webview-security.
Android WebView Security
Scope And Authorization
- In scope: Owned apps, labs, CTFs, authorized assessments.
- Out of scope: Attacking third-party WebViews without permission.
- XSS in WebView can become native RCE-class impact via bridges — handle evidence carefully.
- Pair with
android-intent-securityandcode-quality-standards.
When To Use
- App embeds WebView for content, SSO, payments, or hybrid UI.
- Reviewing
addJavascriptInterfaceand@JavascriptInterfacemethods. - file:// origins, mixed content, or
onReceivedSslErrorproceeding. - Token leakage via WebView caches/cookies.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| General exported components | android-exported-components | |
| Full mobile pentest hub | android-pentesting-tricks | |
| Classic web XSS only | xss-cross-site-scripting | |
| Implementation quality baseline | code-quality-standards |
Domain Focus
| Setting / API | Safe default direction | |
|---|---|---|
setJavaScriptEnabled | Only if required | |
addJavascriptInterface | Minimal surface; validate origin | |
setAllowFileAccess | false unless required | |
setAllowFileAccessFromFileURLs | false | |
setAllowUniversalAccessFromFileURLs | false (dangerous) | |
| Mixed content | Never allow insecure on HTTPS pages | |
| SSL errors | Do not handler.proceed() | |
| Cookies | Secure, HttpOnly where applicable; clear on logout |
Workflow
1. Confirm scope and success criteria
- Map each WebView: URL allowlist, JS on/off, bridges, file access.
- Success: no sensitive bridge methods reachable from untrusted content; SSL errors fail closed; file universal access off.
- Threat: XSS in loaded content + malicious intent loading URL.
2. Static inventory
Build table: WebView class → settings → interfaces → URL sources.
3. Bridge review
| Check | Action | |
|---|---|---|
| Method sensitivity | No raw filesystem, no arbitrary intents, no auth tokens return | |
| Origin | Verify WebView URL host allowlist before privileged ops | |
| minSdk | Historical CVE for unannotated methods on old Android — know your minSdk | |
| Input | Treat all JS args as untrusted |
4. Navigation and URL loading
5. TLS and mixed content
6. Dynamic tests (authorized)
- Attempt
javascript:URLs if app loads untrusted intents. - Check cookie theft via XSS if JS enabled.
7. Remediate and verify
- Disable unused JS/file access; shrink bridge API.
- Prefer Chrome Custom Tabs for external content when embedding not required.
- Clear WebView data on logout:
clearCache, cookie manager remove.
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Content | HTTPS allowlist | Any URL from Intent | |
| Bridge | Few methods + origin checks | exec(cmd) bridge | |
| SSL | Cancel on error | proceed always | |
| Files | No universal file access | setAllowUniversalAccessFromFileURLs(true) |
Output Checklist
- [ ] All WebViews inventoried
- [ ] JS/file/mixed/SSL settings reviewed
- [ ] Bridges origin-checked and minimized
- [ ] URL loading allowlisted
- [ ] SSL error handler safe
- [ ] Dynamic tests on owned builds
- [ ] Logout clears session data
- [ ]
code-quality-standardsapplied
Rules
- Authorized apps only.
- Untrusted web content + bridge = high severity until proven otherwise.
- Never ignore SSL errors in WebView.
- Prefer system browser for arbitrary URLs.
- Redact tokens found in WebView storage.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingandroid-webview-security/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-webview-security)