Commonly known as directory traversal, a Path Traversal attack aims at gaining unauthorized access to directories and files stored outside…