CAS-004 practice question 10 of 35

A security engineer is reviewing Apache web server logs and has identified the following pattern in the log: GET https://example.com/image5/../../etc/passwd HTTP/1.1 200 OK The engineer has also reviewed IDS and firewall logs and established a correlation to an external IP address. Which of the following can be determined regarding the vulnerability and response?

Full set: 610 questions
Answer options
A: A cross-site scripting attack was successful at reading the /etc/passwd file, and the system should avoid passing user-supplied input to REST API.
B: A cross-site request forgery attack was successful at reading the /etc/passwd file, and the system should avoid passing user-supplied input to HTTP POST commands.
C: A directory traversal attack was successful at reading the /etc/passwd file, and the system should avoid passing user-supplied input to the filesystem. Correct answer
D: A brute-force authentication attempt was successful, and the system should implement salting as part of the password hashing algorithm.
Correct Answer:
C. A directory traversal attack was successful at reading the /etc/passwd file, and the system should avoid passing user-supplied input to the filesystem.
Explanation

A directory traversal attack exploits vulnerabilities in file path handling to access unauthorized files, as seen in this example. To mitigate, sanitize user inputs and avoid directly passing user-supplied data to the filesystem. This aligns with CASP+ objective 1.5, addressing secure input validation and mitigating common web-based vulnerabilities.

Scroll to Top