Skip to content

Files

Latest commit

 

History

History
14 lines (9 loc) · 485 Bytes

non-literal-fs-path.md

File metadata and controls

14 lines (9 loc) · 485 Bytes

Pattern: Use of non-literal fs path

Issue: -

Description

Detects fs function calls with a non literal filepath. For security reasons, it may be best to only pass string literals as filesystem paths. Otherwise, it may be possible for an attacker to read and write arbitrary files on your system through path traversal attacks.

Further Reading