Skip to content
Code PathFinder

Android - Code Pathfinder Atlas

Browse our specialized collection of Android security rules designed to help you write better, more secure Android applications.

Test Locally

To run these rules against your Android codebase:

Terminal window
codepathfinder ci --project /src/project --ruleset cpf/android

Rules (5)

Browse our collection of Android security rules. Each rule includes example code and the actual rule implementation.

WebView JavaScript Enabled

Severity: Medium | OWASP: Client Code Quality
Enabling JavaScript execution in a WebView can result in cross-site scripting attacks.

WebView JavaScript Interface

Severity: Medium | OWASP: Client Code Quality
Enabling addJavascriptInterface exposes java methods to JavaScript.

WebView Content Access

Severity: Medium | OWASP: Improper Platform Usage
Enabling setAllowContentAccess enables content:// access from webpages.

WebView File Access

Severity: Medium | OWASP: Improper Platform Usage
Enabling setAllowFileAccess enables webview access to file:/// URLs.

WebView File URL Access

Severity: Medium | OWASP: Improper Platform Usage
Enabling setAllowFileAccessFromFileURLs leaks sandbox access to file:/// URLs.

For more information on using Code PathFinder with Android, see our documentation.