fedora 24
crypto weakness #284

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/License.C

Context:

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

 #endif

#if defined(aviion)
extern "C" { void bzero(char *, int); }
#endif

#include <X11/Intrinsic.h>

#include "IBMApplication.h"

#include "License.h"

#if defined(DXD_LICENSED_VERSION) && DXD_LICENSED_VERSION!=0 
# define NEEDS_LICENSE_ROUTINES 1
#else
# define NEEDS_LICENSE_ROUTINES 0
#endif

#if NEEDS_LICENSE_ROUTINES 

extern "C" {


#if (defined(sgi) && !( __mips > 1)) || defined(aviion)
const char *crypt(const char*, const char*);
#endif

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

#ifdef sun4 
int gethostid();
int getdtablesize();
#endif


#ifdef sgi
unsigned sysid(unsigned char id[]);
int getdtablesize(void);
#endif


#if defined(aviion) 
int gethostid();
int getdtablesize();
int gettimeofday(struct timeval*, struct timezone*);
#endif

#ifdef alphax  

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.