fedora 24
crypto weakness #286


Weakness Breakdown


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:



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

 #include <winsock.h>
#elif defined(HAVE_CYGWIN_SOCKET_H)
#include <cygwin/socket.h>
#elif defined(HAVE_SYS_SOCKET_H)
#include <sys/socket.h>

#include <sys/ioctl.h>          /* ioctls */
#include <net/if.h>             /* generic interface structures */
#include <sys/systeminfo.h>  /* maybe someday this will be implemented...arg! */
extern "C"   int select(
          int nfds,
          fd_set *readfds,
          fd_set *writefds,
          fd_set *exceptfds,
          struct timeval *timeout) ;

#define CRYPT(A,B) crypt((const char*)A, (const char*)B) 

#define ANYWHERE_HOSTID "00000000"

#if defined(DXD_LICENSED_VERSION) && !defined(HAVE_CRYPT)
  error:  Can not  run licensing routines without crypt()

static int  checkexp(const char *root);


#ifndef DXD_WIN

void UIGetLicense(const char *root, 
			XtInputCallbackProc lostLicense,
			LicenseTypeEnum *appLic,
			LicenseTypeEnum *funcLic)
    *appLic = FullyLicensed;
    *funcLic = FullFunctionLicense;

    LicenseTypeEnum forcedFuncLic;
    int i;
    int child;
    int child_in[2],child_out[2];
    char remname[1024];
    char auth_msg[AUTH_MSG_LEN]; 

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.