CVE-2007-3356 in NetClassifiedsinfo

Summary

by MITRE

NetClassifieds Premium Edition allows remote attackers to obtain sensitive information via certain requests that reveal the path in an error message, related to the display_errors setting in (1) Common.php and (2) imageresizer.php, and (3) the use of __FILE__ in error reporting by imageresizer.php; and (4) via certain requests that reveal the table name and complete query, related to the Halt_On_Error setting in Mysql_db.php.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 09/04/2018

This vulnerability resides in the NetClassifieds Premium Edition web application where improper error handling exposes sensitive system information to remote attackers. The flaw manifests through multiple entry points where error messages contain path disclosure and database query information that should remain confidential. The vulnerability specifically targets the display_errors PHP configuration setting in Common.php and imageresizer.php files, which when enabled, causes the application to reveal server paths in error messages. Additionally, the imageresizer.php file utilizes _FILE_ variable in error reporting which further contributes to path disclosure. The attack vector exploits the Halt_On_Error setting within Mysql_db.php, where database query information including table names and complete SQL statements are exposed in error messages. This type of vulnerability falls under CWE-209, which addresses the exposure of error information, and represents a classic path disclosure issue that can be leveraged by attackers to gain insights into the application's file structure and database schema. The vulnerability demonstrates a fundamental security misconfiguration where sensitive system information is inadvertently exposed through error handling mechanisms. The exposure of file paths through _FILE_ variable usage and the revelation of database table names and complete queries creates a significant information disclosure risk that can be exploited by attackers to plan more sophisticated attacks. This vulnerability directly relates to ATT&CK technique T1212, which involves the exploitation of information disclosure vulnerabilities to gather intelligence about the target system. The impact extends beyond simple information disclosure as it provides attackers with the exact database schema and query structures, enabling them to craft targeted attacks against the database layer. The vulnerability affects the application's security posture by removing the protection that should normally be provided by proper error handling and configuration management. When attackers can obtain database table names and complete SQL queries, they gain significant insight into the application's data model and can potentially construct injection attacks or other database-focused exploits. The issue is particularly concerning because it affects multiple files within the application, indicating a systemic problem with how error handling is implemented across different components. The combination of path disclosure and database query exposure creates a powerful attack surface that can be exploited by threat actors to map the application architecture and identify potential attack vectors. Organizations using this software are particularly vulnerable as the error messages provide attackers with the exact locations of sensitive files and the structure of database queries, which can be used to develop more effective exploitation techniques. The vulnerability demonstrates poor security practices in error handling configuration and highlights the importance of proper security hardening of web applications. The exposure of database table names and complete queries through error messages violates fundamental security principles of least privilege and information hiding. This vulnerability type is commonly found in applications that fail to properly sanitize error messages or configure their PHP environment appropriately. The attack can be executed remotely without authentication, making it particularly dangerous as it allows any attacker to gather sensitive information about the application infrastructure. The vulnerability represents a critical configuration issue that can be remediated through proper error handling configuration and the implementation of security best practices for PHP applications.

The exploitation of this vulnerability requires no special privileges and can be accomplished through simple HTTP requests that trigger the error conditions. Attackers can craft specific requests that cause the application to generate errors, thereby exposing the sensitive information. The path disclosure through Common.php and imageresizer.php files provides attackers with directory structures that can be used to understand the application's deployment and potentially identify other vulnerabilities. The database query exposure in Mysql_db.php allows attackers to understand the database schema and query patterns, which can be used to construct more sophisticated attacks such as SQL injection or data exfiltration attempts. The vulnerability exists because the application does not properly sanitize error messages or implement appropriate security controls to prevent information disclosure. This type of vulnerability is classified as a configuration issue rather than a code-level flaw, making it particularly important for system administrators to properly configure their applications. The vulnerability can be mitigated through proper configuration of PHP settings to disable error display in production environments, implementation of proper error handling mechanisms, and the use of security headers to prevent information leakage. Organizations should also implement proper input validation and error handling to prevent the exposure of sensitive information through error messages. The vulnerability demonstrates the critical importance of security configuration management and the need for regular security assessments to identify such misconfigurations.

Reservation

06/22/2007

Disclosure

06/22/2007

Moderation

accepted

Entry

VDB-37423

CPE

ready

EPSS

0.01813

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!