ftp kioslave command injection
Posted on: 01/11/2005 05:06 AM
KDE Security Advisory: ftp kioslave command injection
Original Release Date: 2005-01-01
0. References http://www.securityfocus.com/bid/11827 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1165
1. Systems affected:
All KDE releases up to including KDE 3.3.2.
KDE applications which use the ftp kioslave, e.g. Konqueror, allow remote attackers to execute arbitrary FTP commands via an ftp://URL that contains an URL-encoded newline ( %0a ) before the ftp command, which causes the commands to be inserted into the resulting FTP session.
Due to similiarities between the ftp and the SMTP protocol, this vulnerability allows to misuse the ftp slave to connect to a SMTP server and issue arbitrary commands, like sending an email.
The FTP kioslave can be misused to execute any ftp command on the server or be a vector for sending out unsolicited email.
Source code patches have been made available which fix these vulnerabilities. Contact your OS vendor / binary package provider for information about how to obtain updated binary packages.
Patch for KDE 3.2.3 is available from ftp://ftp.kde.org/pub/kde/security_patches
Patch for KDE 3.3.2 is available from ftp://ftp.kde.org/pub/kde/security_patches
6. Time line and credits:
26/12/2004 Public bug report filed against kio_ftp by Thiago Macieira about being able to send email via kio_ftp CR/LF injection.
26/12/2004 Patches developed by Thiago Macieira developed and applied to CVS.
01/01/2005 Advisory released.