How does directory traversal work against Apache?
▼
Attackers send requests with ../ sequences in the URL to navigate outside the web root directory. If Apache or the application does not properly validate the path, the attacker can read arbitrary files on the server.
Does mod_security protect against directory traversal?
▼
Yes. The OWASP ModSecurity Core Rule Set includes rules that detect and block directory traversal patterns, including encoded and double-encoded variations. Ensure mod_security is running in blocking mode.
What is the difference between LFI and directory traversal?
▼
Directory traversal is the technique of navigating the file system using ../ sequences. Local File Inclusion (LFI) is a vulnerability where the application includes a file based on user input. LFI often uses directory traversal as the exploitation method.