All rules →
Rules / Kotlin
SHIELD-KOTLIN-011

Path traversal via File/FileInputStream with request input

highKotlinCWE-22CVSS 7.5

What it detects

Constructing a File or FileInputStream from request-derived input allows path traversal outside the intended directory.

How to fix

Canonicalize the path and verify it stays within an allowed base directory before opening.

Scan your repo freeFull documentation
Back to all rules
SHIELD-KOTLIN-011: Path traversal via File/FileInputStream with request input — Zennoxa Shield