Description
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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 3
- PHPWebGallery 1.3.4/1.5.1 - 'comments.php' SQL Injection EDB-26790 · webapps · Dec 13, 2005 · verified
- PHPWebGallery 1.3.4/1.5.1 - 'category.php' SQL Injection EDB-26791 · webapps · Dec 13, 2005 · verified
- PHPWebGallery 1.3.4/1.5.1 - 'picture.php' SQL Injection EDB-26792 · webapps · Dec 13, 2005 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://pridels0.blogspot.com/2005/12/phpwebgallery-multiple-sql-inj.html
- 21690 vdb-entry
- 18019 third-party-advisory
- ADV-2005-2881 vdb-entry
- 15837 vdb-entry
- 21691 vdb-entry
- 21689 vdb-entry