What are the differences between path traversal and directory listing?
Path Traversal:
1. This is issue with input validation
2. Attacker can able to access all the files, provided he knows the exact file name
3. Attacker may access all files even if it is for root folder
Directory listing:
1. This is issue with system configuration
2. Attacker can able to access all files, provided he knows the FOLDER name
3. Attacker may access limited files depends up on configuration and folder permissions.