A security flaw has been discovered in D-Link DIR-823G 1.0.2B05. The affected element is an unknown function of the file /etc/vsftpd.conf of the component vsftpd. Performing a manipulation results in least privilege violation. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks.
A flaw was found in vsftpd. This vulnerability allows a denial of service (DoS) via an integer overflow in the ls command parameter parsing, triggered by a remote, authenticated attacker sending a crafted STAT command with a specific byte sequence.
There exists a integer overflow to buffer overflow vulnerability within tzfileread function of the GNU C Library. This vulnerability was published by dividead early in 2009 in the following blog post:
http://dividead.wordpress.com/2009/06/01/glibc-timezone-integer-overflow/
In December 3, Kingcope, at Full Disclosure Mailing List, noted vsftpd as one possible attack vector for this issue:
http://lists.grok.org.uk/pipermail/full-disclosure/2011-December/084452.html
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-0762 to the following vulnerability:
Name: CVE-2011-0762 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0762 Assigned: 20110203 Reference: http://securityreason.com/achievementsecurityalert/95 Reference: http://www.securityfocus.com/archive/1/archive/1/516748/100/0/threaded Reference: http://cxib.net/stuff/vspoc232.c Reference: ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.3.4/Changelog Reference: http://www.kb.cert.org/vuls/id/590604 Reference: http://www.securityfocus.com/bid/46617
The vsffilenamepassesfilter function in ls.c in vsftpd before 2.3.3 allows remote authenticated users to cause a denial of service (CPU consumption and process slot exhaustion) via crafted glob expressions in STAT commands in multiple FTP sessions, a different vulnerability than CVE-2010-2632.
Description of problem: There is a memory leak that causes memory to be allocated but not freed. When the denyfile option is set, it is possible to easily exploit this. This is a regression caused by applied patch in bz174764. Problem also exists in FC-6, F-7, F-8 and fedora/devel. Attached is a patch to solve the problem.
Version-Release number of selected component (if applicable): vsftpd-2.0.5-10.el5
How reproducible: always
Steps to Reproduce: echo denyfile=foo >> /etc/vsftpd/vsftpd.conf service vsftpd restart
$ cat > memtest.sh << EOF #!/bin/bash echo USER anonymous echo PASS foo
while [ 1 ]; do echo CWD pub echo CWD .. done EOF
$ chmod 700 memtest.sh $ ./memtest.sh | telnet localhost 21 > /dev/null
Actual results: vsftpd starts to allocate memory that will never be freed.
Expected results:
Additional info: It is possible that the memory leak can be exploited by other means, or with other vsftpd.conf options. This was not investigated into more depth.