CS0-003 practice question 12 of 35
An analyst reviews the following web server log entries:%2E%2E/%2E%2E/%2ES2E/%2E%2E/%2E%2E/%2E%2E/etc/passwdNo attacks or malicious attempts have…
Full set: 462 questionsAn analyst reviews the following web server log entries:
%2E%2E/%2E%2E/%2ES2E/%2E%2E/%2E%2E/%2E%2E/etc/passwd
No attacks or malicious attempts have been discovered. Which of the following most likely describes what took place?
The log entry %2E%2E/ is the URL-encoded version of ../. This sequence is used to navigate up the directory hierarchy on a server's file system. The repeated use of this pattern is a classic technique for a directory traversal (or path traversal) attack. The attacker's goal is to move outside of the web server's root directory to access sensitive system files. In this case, the target is /etc/passwd, a file on Unix-like systems that contains a list of local user accounts. Accessing this file is a common reconnaissance step to gather usernames for further attacks.
A. This is not a SQL injection attack, as the log entry contains no SQL-specific syntax, keywords (like SELECT, UNION), or operators.
B. This is not a PHP injection attack because the string does not contain any PHP code, functions (like include or eval), or tags.
C. The string uses URL encoding (e.g., %2E for .), not Base64 encoding, which uses a distinct character set (A-Z, a-z, 0-9, +, /).
1. MITRE Corporation. (2023). CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). Common Weakness Enumeration. Retrieved from https://cwe.mitre.org/data/definitions/22.html. The "Observed Examples" section (e.g., CWE-22-1) explicitly details the use of ../ sequences to access files like /etc/passwd.
2. OWASP Foundation. (n.d.). Path Traversal. OWASP Cheat Sheet Series. Retrieved from https://cheatsheetseries.owasp.org/cheatsheets/PathTraversalCheatSheet.html. This document provides examples of path traversal, including the ../../../../etc/passwd pattern and its various encodings, such as URL encoding (%2e%2e%2f).
3. Zeller, E., & Miller, R. (2014). Lecture 10: Web Security. MIT OpenCourseWare, 6.858 Computer Systems Security, Fall 2014. Page 18, "Path Traversal" slide. This lecture slide provides a clear example of a path traversal attack targeting the /etc/passwd file using the ../ sequence. Retrieved from https://ocw.mit.edu/courses/6-858-computer-systems-security-fall-2014/resources/mit6858f14lec10/.
Keep practicing
Take the free CS0-003 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CS0-003 practice questions
- Question 1A regulated organization experienced a security breach that exposed a list of customer na…
- Question 2Which of the following risk management decisions should be considered after evaluating al…
- Question 3A company classifies security groups by risk level. Any group with a high-risk classifica…
- Question 4A security analyst reviews a packet capture and identifies the following output as anomal…
- Question 5Which of the following best explains the importance of network microsegmentation as part …
- Question 6A network security analyst for a large company noticed unusual network activity on a crit…
