fedora 24
crypto weakness #288

4

Weakness Breakdown


Definition:

This weakness involves creating non-standard or non-tested algorithms, using weak algorithms or applying cryptographic algorithms incorrectly. Algorithms that were once considered safe are commonly later found to be unsafe, as the algorithms were broken.

Warning code(s):

The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment.

File Name:

dx-4.4.4/src/uipp/base/TemporaryLicense.C

Context:

The highlighted line of code below is the trigger point of this particular Fedora 24 crypto weakness.

 #include <stdlib.h>
#include <ctype.h>
#include <sys/time.h>
#include <time.h>
#ifndef DXD_DO_NOT_REQ_UNISTD_H
#include <unistd.h>
#endif


#if defined(ibm6000) 
extern "C" void gettimer (int, struct timestruc_t* );
#endif

#include "DXStrings.h"

#if defined(aviion) || defined(solaris) || defined(sgi)
#include <crypt.h>
#endif

#if defined(ibm6000) || defined(hp700)
#include <sys/utsname.h>
#if defined(ibm6000) && !defined(_AIX41)
extern "C" const char *crypt(const char* , const char*);
#else
extern "C" char *crypt(const char* , const char*);
#endif
#endif

#if defined(aviion) || defined(solaris) || defined(sgi)
#include <sys/systeminfo.h>
#endif
#if defined(sgi) && !( __mips > 1)
extern "C" unsigned sysid(unsigned char *id);
#endif
#if defined(aviion)
extern "C" long sysinfo (int , char *, long );
#endif
#if defined(aviion)
extern "C" int gettimeofday(struct timeval *);
#endif

#if defined(sun4)
extern "C" long gethostid();
#endif

#ifdef alphax
#include <crypt.h>
int getdtablesize();
#include <stdio.h>              /* standard I/O */
#include <errno.h>              /* error numbers */ 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.