KVIrc irc:// URI Handler Command Execution Vulnerability

Bug #123037 reported by totya
268
Affects Status Importance Assigned to Milestone
kvirc (Ubuntu)
Fix Released
Medium
Rich Johnson

Bug Description

Binary package hint: kvirc

I read the following Secunia report. I took I open a bug report against kvirc.

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

                     Secunia Research 26/06/2007

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

======================================================================
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

======================================================================
1) Affected Software

* KVIrc 3.2.0

NOTE: Other versions may also be affected.

======================================================================
2) Severity

Rating: Moderately critical
Impact: System Access
Where: Remote

======================================================================
3) Vendor's Description of Software

"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.".

Product Link: http://www.kvirc.net

======================================================================
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in KVIrc, which can be
exploited by malicious people to compromise a user's system.

The vulnerability is caused due to the "parseIrcUrl()" function in
src/kvirc/kernel/kvi_ircurl.cpp not properly sanitising 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.

======================================================================
5) Solution

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

======================================================================
6) 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.

======================================================================
7) Credits

Discovered by Stefan Cornelius, Secunia Research.

======================================================================
8) References

The Common Vulnerabilities and Exposures (CVE) project has assigned
CVE-2007-2951 for the vulnerability.

======================================================================
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://corporate.secunia.com/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private
individuals, who are interested in or concerned about IT-security.

http://secunia.com/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the
security and reliability of software in general:

http://corporate.secunia.com/secunia_research/33/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/secunia_vacancies/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/secunia_security_advisories/

======================================================================
10) Verification

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2007-56/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

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

Revision history for this message
Kees Cook (kees) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. If someone can prepare (and test) the fixes and attach debdiffs that follow the [https://wiki.ubuntu.com/SecurityUpdateProcedures], I'd be more than happy to get them uploaded.

Changed in kvirc:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
totya (totya) wrote :

Hi Richard,

I opened this bug. I reported Secunia security report against kvirc. See above.

I just subscribed you. The reason is simple. I checked the change log of the kvirc ubuntu package and I found you as a person who did the last change. I think you have the ability to prepare (and test) the fixes and attach debdiffs. I don't want to bother you, I just want to inform you as a kvirc user.

totya

Rich Johnson (nixternal)
Changed in kvirc:
assignee: nobody → nixternal
status: Triaged → In Progress
Kees Cook (kees)
Changed in kvirc:
status: In Progress → Fix Released
Revision history for this message
Rich Johnson (nixternal) wrote :

kvirc (2:3.2.4-5ubuntu2) gutsy; urgency=low

  * SECURITY UPDATE: parseIrcUrl() do not properly sanitize parts of the URI
    when building the command for KVIrc's internet 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.
  * Add debian/patches/10_parseIrcUrl_security_fix.patch: properly sanitizes
    URI strings, as done in upstream SVN. (Fixes LP: #123037)
  * References:
    - http://www.kvirc.net/?id=news&story=2007.06.29.22.00.1.story&dir=latest
    - http://secunia.com/secunia_research/2007-56/advisory/
    - http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2951
    - https://svn.kvirc.de/kvirc/changeset/630/#file3 (fix to kvi_ircurl.cpp)
  * Add debian/control: Debian Maintainer Field

 -- <email address hidden> (Richard A. Johnson) Mon, 02 Jul 2007 13:16:11 -0500

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.