GNU inetutils 1.8-1 FTP Client Heap Overflow
Posted on 08 December 2010
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Title: GNU inetutils 1.8-1 ftp client Heap Overflow Date: Dec 07 2010 Author: Rew Software Link: http://ftp.gnu.org/gnu/inetutils/inetutils-1.8.tar.gz Version: 1.8-1 Tested on: Arch Linux (up to date) CVE: NA (0day) =========================================================================== Here's a cute little bug just for kicks. This is only triggerable by the local user, so exploitation would get you absolutely nowhere, but meh :P GNU inetutils ftp (shipped with linux and other *nix's) suffers a heap overflow while parsing command arguments (but ONLY when the argument is NOT passed on the same line.) If you run any command (open, user, cd, mkdir, etc) without an argument, ftp will prompt you for an argument with readline(). It will then copy this input into a 200 byte buffer without first checking it's length. NOTE: Some distros might modify this binary. It didn't seem to work on the default Mint ftp client (maybe a Ubuntu thing?) but the default Arch binary is vulnerable. Your results may vary. Download from GNU if you have doubts. - --- ftp/main.c:slurpstring() --- 406: char *sb = stringbase; <--- This is our input. (can be massive) 407: char *ap = argbase; <--- This buffer is 200 bytes. 458: S1: 463: case '