fedora 24
crypto weakness #286

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.

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

#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) ;
#endif

}
#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()
#endif

static int  checkexp(const char *root);

#endif // NEEDS_LICENSE_ROUTINES 

#ifndef DXD_WIN

void UIGetLicense(const char *root, 
			XtInputCallbackProc lostLicense,
			LicenseTypeEnum *appLic,
			LicenseTypeEnum *funcLic)
{
#if !NEEDS_LICENSE_ROUTINES 
    *appLic = FullyLicensed;
    *funcLic = FullFunctionLicense;
    return;
#else

    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.