PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

BID:31762

Info

PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

Bugtraq ID: 31762
Class: Input Validation Error
CVE: CVE-2008-4645
Remote: Yes
Local: No
Published: Oct 14 2008 12:00AM
Updated: May 07 2015 05:22PM
Credit: EgiX
Vulnerable: PhpWebGallery PhpWebGallery 1.7.2
PhpWebGallery PhpWebGallery 1.7.1
PhpWebGallery PhpWebGallery 1.7
PhpWebGallery PhpWebGallery 1.5.2
PhpWebGallery PhpWebGallery 1.5.1
PhpWebGallery PhpWebGallery 1.4.1
PhpWebGallery PhpWebGallery 1.3.4
PhpWebGallery PhpWebGallery 1.1
PhpWebGallery PhpWebGallery 1.0
Not Vulnerable: PhpWebGallery PhpWebGallery 1.7.3

Discussion

PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

PhpWebGallery is prone to an SQL-injection issue and a code-execution issue because it fails to sufficiently sanitize user-supplied data.

Successfully exploiting the SQL-injection issue may allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.

Exploiting the code-execution issue may allow the attacker to execute arbitrary PHP code in the context of the application.

Versions up to and including PhpWebGallery 1.7.2 are vulnerable.

Exploit / POC

PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

The following exploit is available:

Solution / Fix

PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

Solution:
The vendor released PhpWebGallery 1.7.3 to address these issues. Please see the references for more information.


PhpWebGallery PhpWebGallery 1.0

PhpWebGallery PhpWebGallery 1.1

PhpWebGallery PhpWebGallery 1.3.4

PhpWebGallery PhpWebGallery 1.4.1

PhpWebGallery PhpWebGallery 1.5.1

PhpWebGallery PhpWebGallery 1.5.2

PhpWebGallery PhpWebGallery 1.7

PhpWebGallery PhpWebGallery 1.7.1

PhpWebGallery PhpWebGallery 1.7.2

References

PhpWebGallery 'comments.php' SQL Injection and Code Execution Vulnerabilities

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report