Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Moderately critical

PHPhotoalbum SQL Injection and Arbitrary File Upload

-

Release Date:  2008-05-29    Last Update:  2010-04-30    Views:  4,280

Secunia Advisory SA30407

Where:

From remote

Impact:

Manipulation of data, System access

Solution Status:

Unpatched

Software:

CVE Reference(s):

Description


A security issue and a some vulnerabilities have been discovered in PHPhotoalbum, which can be exploited by malicious people to conduct SQL injection attacks or compromise a vulnerable system.

1) Input passed to the "album" parameter in thumbnails.php and "pid" in displayimage.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

2) The security issue is caused due to the application improperly validating uploaded files. This can be exploited to execute arbitrary PHP code by uploading a malicious PHP script with multiple extensions.

Successful exploitation requires that Apache is not configured to handle the mime-type for media files with an e.g. "gif", "jpg", "png" extension.

The security issue and the vulnerabilities are confirmed in version 0.5. Other versions may also be affected.


Solution:
Edit the source code to ensure that input is properly sanitised. Restrict access to the upload.php script (via e.g. via .htaccess).

Provided and/or discovered by:
1) cOndemned
2) wlhaan hacker

Original Advisory:
1) http://milw0rm.com/exploits/56831

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: PHPhotoalbum SQL Injection and Arbitrary File Upload

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability