312-50V12 · Question #108
What are common files on a web server that can be misconfigured and provide useful information for a hacker such as verbose error messages?
The correct answer is C. php.ini. Web server configuration files can be misconfigured to expose sensitive information such as verbose error messages, and php.ini is the primary PHP configuration file that controls error reporting and display settings.
Question
Options
- Ahttpd.conf
- Badministration.config
- Cphp.ini
- Didq.dll
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- C91% (21)
Why each option
Web server configuration files can be misconfigured to expose sensitive information such as verbose error messages, and php.ini is the primary PHP configuration file that controls error reporting and display settings.
httpd.conf is the Apache HTTP Server configuration file that controls server-level settings like directory permissions and modules, but it does not directly control application-level error message verbosity in the way php.ini does.
administration.config is not a standard, commonly recognized web server configuration file and is not associated with a specific web technology's error reporting or verbose output settings.
php.ini is the main configuration file for PHP and contains directives such as 'display_errors' and 'error_reporting' that, when misconfigured (e.g., display_errors = On in a production environment), expose verbose error messages revealing file paths, database structures, and application logic to attackers. This makes it a high-value target for reconnaissance, as misconfigurations can inadvertently leak stack traces, SQL queries, and server internals. It is one of the most commonly misconfigured files on PHP-based web servers.
idq.dll is a Windows IIS component associated with the Index Server ISAPI extension and is known for a historical buffer overflow vulnerability (MS01-033), not for being a misconfigured file that produces verbose error messages.
Concept tested: Web server misconfiguration exposing verbose error information
Source: https://www.php.net/manual/en/errorfunc.configuration.php
Topics
Community Discussion
No community discussion yet for this question.