312-50v12 Exam QuestionsBrowse all questions from this exam

312-50v12 Exam - Question 6


What are common files on a web server that can be misconfigured and provide useful information for a hacker such as verbose error messages?

Show Answer
Correct Answer: C

Common files on a web server that can be misconfigured and provide useful information for a hacker, such as verbose error messages, include php.ini. The php.ini file is the configuration file for PHP and controls various settings, including error reporting. If misconfigured to display verbose errors, it can reveal sensitive information such as file paths, database details, and debugging information that could be exploited by attackers. Therefore, php.ini is a critical file in this context.

Discussion

12 comments
Sign in to comment
sausagemanOption: C
Oct 19, 2023

C:php.ini CEH Book v12 Module 13 Page 1163 "As shown in the below figure, the configuration may give verbose error messages. " "Figure 13.12: Screenshot displaying the php.ini file"

Harrysphills
May 3, 2024

So, while httpd.conf and php.ini are valid answers, in the context of verbose error messages, php.ini would be a more direct source of such information because it controls the output of errors in PHP, which is a common language for web applications. Verbose error messages can reveal paths, database details, and other sensitive information that can be exploited by a hacker.

eli117Option: A
Oct 4, 2023

A. httpd.conf While files such as php.ini (which can also contain sensitive configuration information for PHP-based web applications) can also be misconfigured and provide useful information to attackers, httpd.conf is generally considered to be the most commonly targeted file for this purpose, due to the widespread use of the Apache web server.

jeremy13Option: C
Oct 10, 2023

C: php.ini Although I think httpd.conf is also a possible answer, I would say php.ini which can disclose more error messages (database etc..)

aukaaya
Oct 15, 2023

C:php.ini is the correct one

naija4lifeOption: A
Jan 1, 2024

httpd.conf

kapenOption: C
Jan 18, 2024

php.ini misconfiguration may give verbose error messages. see pages 1792, Exam 312-50 Certified Ethical Hacker

Takue
Mar 19, 2024

Correct Answer is C httpd.conf refers to the configuration may allow anyone to view the server status page, which contains detailed information about the current use of the web server, including information about the current hosts and requests being processed. php.ini refers to the configuration may give verbose error messaget

Harrysphills
May 3, 2024

both are correct

insaniuntOption: C
May 26, 2024

php.ini page 1791, 312-50 Certified Ethical Hacker

brrbrrOption: C
Aug 22, 2024

display_errors = on The display_errors directive must be set to “on” in the PHP ini file. This will display all the errors including syntax or parse errors that cannot be displayed by just calling the ini_set function in the PHP code.

Mann098Option: C
Dec 27, 2024

httpd.conf is also a possible answer but php.ini is correct bcoz it stores error messages also