Multiple SQL injection vulnerabilities in PhpWebGallery 1.5.1 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) since, (2) sort_by, and (3) items_number parameters to comments.php, (4) the search parameter to category.php, and (5) image_id parameter to picture.php. NOTE: it was later reported that the comments.php/sort_by vector also affects 1.7.2 and earlier.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
http://pridels0.blogspot.com/2005/12/phpwebgallery-multiple-sql-inj.html | |
http://www.osvdb.org/21690 | vdb entry |
http://secunia.com/advisories/18019 | third party advisory vendor advisory |
http://www.vupen.com/english/advisories/2005/2881 | vdb entry |
http://www.securityfocus.com/bid/15837 | vdb entry exploit |
http://www.osvdb.org/21691 | vdb entry |
http://www.osvdb.org/21689 | vdb entry |