Directory Traversal Attack: History, Exploitation, Detection and Prevention
What is the directory traversal? The directory traversal, also known as the path traversal, is a web safety vulnerability that allows an attacker to reach files and directors stored outside the web root folder. "Dot-Dot-Slash (..)" can cross the attacker directions by manipulating the variables with sequences and their variations, and can access the restricted files-as the application source code, configuration files, or system password files. Example: Instead of accessing: arduino https://example.com/view?file=about.html an attacker might try: bash https://example.com/view?file=../../../etc/passwd This could result in access to /etc/passwd on Unix-based systems if the application doesn't sanitize input correctly. History of directory The origin of the directory traversal weaknesses goes back to the early days of web development when developers user rely much on the dynamic file path generation based on the input. The early CGI scripts and PHP applications were particula...