Path traversal is also known as directory traversal. These vulnerabilities enable an attacker to read arbitrary files on the server that is…