fedora 25
crypto weakness #30

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):

DES only supports a 56-bit keysize, which is too small given today's computers.

File Name:

kdelibs4support-5.38.0/src/kssl/kopenssl.cpp

Context:

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

 {
    if (K_X509_get1_email) {
        return (K_X509_get1_email)(x);
    } else {
        return nullptr;
    }
}

void KOpenSSLProxy::X509_email_free(STACK *sk)
{
    if (K_X509_email_free) {
        (K_X509_email_free)(sk);
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_des_ede3_cbc()
{
    if (K_EVP_des_ede3_cbc) {
        return (K_EVP_des_ede3_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_des_cbc()
{
    if (K_EVP_des_cbc) {
        return (K_EVP_des_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_rc2_cbc()
{
    if (K_EVP_rc2_cbc) {
        return (K_EVP_rc2_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_rc2_64_cbc()
{
    if (K_EVP_rc2_64_cbc) {
        return (K_EVP_rc2_64_cbc)();
    } else {
        return nullptr;
    }
} 

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.