Exam GCIH All QuestionsBrowse all questions from this exam
Question 191

How should an incident handler classify the following event shown in the output below?

    Correct Answer: D

    The event shown in the output appears to be a command injection attack. This is indicated by the use of the 'cat' command, which is used to read the contents of files in Unix-based systems. The URL includes 'cat /etc/passwd', aiming to display the contents of a sensitive system file. Command injections involve injecting and executing arbitrary commands on the host operating system via a vulnerable application, which fits the situation described.

Discussion
Vikt0rOption: D

How is it C? Looks like D.

Vikt0r

Nevermind C is correct. GET http://www.giac.org:80/utils/dnslookup.php?www.sans.org+cat+%2Fetc%2Fpasswd HTTP/1.0

anonyuser

inclined to agree with command injection, but unsure... "cat" is a command. if I'm doing directory traversal I'm not trying to issue commands, only change paths. typically in directory traversal attacks within HTTP requests, you wouldn't use commands like "cat". Directory traversal attacks involve manipulating the file path in such a way that you can access files outside the intended directory structure of a web application. For example, you might try to navigate to parent directories by using sequences like "../" to access files in higher-level directories. For instance, an attacker might try accessing sensitive files like "/etc/passwd" by crafting a URL like http://www.example.com/page.php?file=../../etc/passwd.