Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




Vulnerability Development mailing list archives

Re: GNU sharutils 4.2.1 PoC
From: Vade 79 <v9 () fakehalo deadpig org>
Date: 9 Apr 2004 21:38:57 -0000

In-Reply-To: <200404091202.i39C21sr051841 () mailserver1 hushmail com>

below are some details ->

[sharutils-4.2.1/src/shar.c]
..

static char output_base_name[50];

..
     case 'o':
       strcpy (output_base_name, optarg);

..

sam () slackware:~$ /usr/bin/shar -o `perl -e 'print "a" x 4000'`
Segmentation fault

...looked at this program awhile ago, the same buffer also gets used as a format string later on... you can abuse it 
that way if you like...

static void
open_output ()
{
  sprintf (output_filename, output_base_name, ++part_number);
  output = fopen (output_filename, "w");
  if (!output)
    error (EXIT_FAILURE, errno, _("Opening `%s'"), output_filename);
}

...although, you can get this program to execute code all over the place(non-memory corruption)...not that its a real 
threat, if its just for fun i get it.  a better method is to create a trojan'd archive for it to 'unshar'...which is 
quite doable.


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]