mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
27 lines
661 B
YAML
27 lines
661 B
YAML
id: webview-file-access-java
|
|
|
|
info:
|
|
name: Android File Access - Detect in Java sources
|
|
author: 7h3b4dger
|
|
severity: info
|
|
description: Android WebView File Access enabling was detected - Java source version.
|
|
tags: android,file,webview
|
|
|
|
file:
|
|
- extensions:
|
|
- java
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words: ["setAllowFileAccess(true)"]
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- package\s+(?:.*)
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
name: package
|
|
group: 1
|
|
regex:
|
|
- (?m)^\s*package\s+([A-Za-z_][A-Za-z0-9_\.]*)\s*; |