[Please upgrade if you use Konversation on any distribution -- Raju] This is an RFC 1153 digest. (1 message) ----------------------------------------------------------------------
MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0784611282==" Message-Id: <[EMAIL PROTECTED]> From: Wouter Coekaerts <[EMAIL PROTECTED]> Sender: [EMAIL PROTECTED] To: [email protected], [email protected] Cc: Subject: [Full-Disclosure] Multiple vulnerabilities in Konversation Date: Wed, 19 Jan 2005 17:39:46 +0100 --===============0784611282== Content-Type: multipart/signed; boundary="nextPart5172389.Iv6r0Bbtn2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart5172389.Iv6r0Bbtn2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 18 and 19 Jan 2005 I (Wouter Coekaerts) discovered 3 security vulnerabilities in Konversation ("A user-friendly IRC-client for KDE",=20 http://konversation.berlios.de/). Affected are version 0.15, CVS until 18-19/01/2005, and some older versions too. They are fixed in 0.15.1. Problem 1. Quick Buttons =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Server::parseWildcards function is buggy: to expand % variables, it does a series of QString.replace's, so the value for one variable can contain another variable, which will then be expanded too. This function is used for the "Quick Buttons" under the nicklist (which is disabled by default) The only way I found to exploit this from another client, would be to let a user join a channel with such vars in its name, and then let the user press the Part Button. But since channel names cannot have spaces, only very=20 simple things can be done. =46or example: in #%n/quit%n, he will disconnect. An 'evil' server might be able to do this for other Quick Buttons too. Problem 2. Included Perl scripts vulnerable to shell command injection =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Perl scripts included with Konversation execute a command line similar to: exec ("dcop $PORT Konversation say $SERVER \"$TARGET\" output"); shell characters in $SERVER or $TARGET aren't escaped. Joining #`kwrite` and executing a script (for example typing /uptime) will start kwrite. A song with a strange name may also cause command execution with the media script. Problem 3. Nick and password confused in quick connect dialog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I'll leave the question of wether or not this actually is a security bug=20 open, but at least I can imagine someone could see it as one. Nick and password are confused in the quick connection dialog, so connecting with that dialog and filling in a password, would use that password as nick. If connecting works, you'll show everyone your password that was probably a password for something else (since you could connecting with your nick as password instead). If connecting fails because the server did require a password, it may show an oper watching server notices your password and/or put it in a logfile. Solution =3D=3D=3D=3D=3D=3D=3D=3D These problems are fixed in version 0.15.1, which was released 19/01/05 Individual patches can be downloaded at: http://wouter.coekaerts.be/konversation.html : http://wouter.coekaerts.be/files/konversation-parse.diff http://wouter.coekaerts.be/files/konversation-quickconnect.diff http://wouter.coekaerts.be/files/konversation-scripts.diff --nextPart5172389.Iv6r0Bbtn2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBB7o1cgVj7LvUXHt4RAnOmAKCChMkNIXUv5FPiWoKLEaJrZRfm3gCeMha8 +w9yWQVTJHkyDyuje6/+WAQ= =PSew -----END PGP SIGNATURE----- --nextPart5172389.Iv6r0Bbtn2-- --===============0784611282== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.netsys.com/full-disclosure-charter.html --===============0784611282==-- ------------------------------ End of this Digest ****************** -- Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
