CEH Web Application and Injection Attacks Practice Question
An analyst observes the following log entry on a web server: GET /../../etc/passwd HTTP/1.1 200. Which type of attack is indicated?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Directory traversal
The log shows a request attempting to traverse directories using '../' to access a sensitive system file (/etc/passwd), which is directory traversal.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Directory traversal
Why this is correct
Directory traversal, also known as path traversal, is an attack that exploits vulnerabilities in web server software or applications to access files and directories stored outside the intended web root directory. The '../' sequence observed in the log entry is a classic technique used to navigate up the directory hierarchy, allowing an attacker to read sensitive files like configuration files, password files, or source code that should not be publicly accessible. This specific request clearly demonstrates an attempt to traverse directories to access '/etc/passwd'.
- ✗
SSRF
Why it's wrong here
Server-Side Request Forgery (SSRF) occurs when a web application is tricked into making requests to an arbitrary domain specified by the attacker, often targeting internal systems or other external services. The observed log entry, which shows an attempt to access a local file path using '../', does not involve the server initiating an outbound network request to another server or internal service. Instead, it's a direct manipulation of a local file path within the server's own file system, fundamentally different from an SSRF attack.
- ✗
LFI
Why it's wrong here
Local File Inclusion (LFI) vulnerabilities allow an attacker to include a file from the local server into the web application's response, often by manipulating a parameter that specifies a file path to be processed by a script. While LFI can sometimes utilize directory traversal sequences ('../'), the primary characteristic is the *inclusion* of the file's content into the rendered page or script execution context. The log entry, by contrast, indicates a direct attempt to *access* a file path, not necessarily to include its content within a server-side script's execution flow, making it a direct path traversal attempt.
- ✗
Command injection
Why it's wrong here
Command injection vulnerabilities allow an attacker to execute arbitrary operating system commands on the host server by injecting them into input fields that are subsequently passed to a system shell. This attack aims to run commands like 'ls', 'cat', or 'whoami'. The log entry, however, shows an attempt to manipulate a file path using '../' to access a specific file, which is a file system navigation operation, not the execution of an arbitrary OS command. Therefore, it does not align with the characteristics of command injection.
Go deeper
Related to this question
About these practice questions
Courseiva writes every CEH question from scratch — 870 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.