[UNIX] KVIrc irc:// URI Handler Command Execution Vulnerability



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



KVIrc irc:// URI Handler Command Execution Vulnerability
------------------------------------------------------------------------


SUMMARY

<http://www.kvirc.net> KVIrc is "a free portable IRC client based on the
excellent Qt GUI toolkit. KVIrc is being written by Szymon Stefanek and
the KVIrc Development Team with the contribution of many IRC addicted
developers around the world". Secunia Research has discovered a
vulnerability in KVIrc, which can be exploited by malicious people to
compromise a user's system.

DETAILS

Vulnerable Systems:
* KVIrc version 3.2.0

The vulnerability is caused due to the "parseIrcUrl()" function in
src/kvirc/kernel/kvi_ircurl.cpp not properly sanitizing parts of the URI
when building the command for KVIrc's internal script system. This can be
exploited to inject and execute commands for the KVIrc script system
(including the "run" command, which can be leveraged to execute shell
commands) by e.g. tricking a user into opening a specially crafted
"irc://" or similar URI (e.g. "irc6://").

Successful exploitation requires that KVIrc is the default handler for
"irc://" and similar URIs.

Solution:
Fixed in the SVN repository:
<https://svn.kvirc.de/kvirc/changeset/630/#file3>
https://svn.kvirc.de/kvirc/changeset/630/#file3

Time Table:
19/06/2007 - Vendor notified.
19/06/2007 - Vendor response.
21/06/2007 - Vendor commits fix into SVN repository.
26/06/2007 - Public disclosure.

CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2951>
CVE-2007-2951


ADDITIONAL INFORMATION

The information has been provided by <mailto:remove-vuln@xxxxxxxxxxx>
Secunia Research.
The original article can be found at:
<http://secunia.com/secunia_research/2007-56/>
http://secunia.com/secunia_research/2007-56/



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.