Path or Directory Traversal is an attack that aims to access files and directories stored outside the intended directory by manipulating file paths using techniques like "dot-dot-slash" (../) or providing absolute file paths.
An attacker could gain unauthorized access to critical system files such as:
Note:
The directory traversal vulnerability is known by different names, including:
1-avoid user-supplied directory
2-Verify the input
3-Don't reinvent the wheel: use open-source libraries