All rules →
Rules / Swift
SHIELD-SWIFT-013

Path traversal via file read

highSwiftCWE-22CVSS 7.5

What it detects

A file is read from a path built with interpolated variable data.

How to fix

Canonicalize the path and confine it to an allowed base directory before reading.

Scan your repo freeFull documentation
Back to all rules
SHIELD-SWIFT-013: Path traversal via file read — Zennoxa Shield