PHPWebGallery picture.php image_id Variable SQL Injection

2005-12-13T07:33:10
ID OSVDB:21691
Type osvdb
Reporter r0t(krustevs@googlemail.com)
Modified 2005-12-13T07:33:10

Description

Vulnerability Description

PhpWebGallery contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the picture.php script not properly sanitizing user-supplied input to the 'image_id' variable. This may allow an attacker to inject or manipulate SQL queries in the backend database.

Solution Description

Upgrade to version 1.5.2 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

PhpWebGallery contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the picture.php script not properly sanitizing user-supplied input to the 'image_id' variable. This may allow an attacker to inject or manipulate SQL queries in the backend database.

Manual Testing Notes

/picture.php?cat=best_rated&image_id=[SQL]

References:

Vendor URL: http://www.phpwebgallery.net/ Secunia Advisory ID:18019 Related OSVDB ID: 21689 Related OSVDB ID: 21690 Other Advisory URL: http://pridels.blogspot.com/2005/12/phpwebgallery-multiple-sql-inj.html FrSIRT Advisory: ADV-2005-2881 CVE-2005-4228 Bugtraq ID: 15837