All rules →
Rules / C#
SHIELD-CSHARP-013

Path traversal from request input into file API

highC#CWE-22CVSS 8.6

What it detects

A file read or stream is opened using a path derived directly from HTTP request input.

How to fix

Canonicalize and validate the path against an allowlisted base directory before opening the file.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-013: Path traversal from request input into file API — Zennoxa Shield