{"vuid":"VU#623217","idnumber":"623217","name":"Cryptographic weakness in Kerberos Version 4 protocol","keywords":["MIT","Kerberos","cryptographic","Version 4","realm","2003-004"],"overview":"Several cryptographic vulnerabilities exist in the basic Kerberos Version 4 protocol that could allow an attacker to impersonate any user in a Kerberos realm and gain any privilege authorized through that Kerberos realm.","clean_desc":"The MIT Kerberos Development team has discovered a serious cryptographic flaw in the Kerberos version 4 protocol. This flaw could allow an attacker to compromise the entire affected Kerberos realm. From the MIT advisory: \"Kerberos version 4 tickets include neither a cryptographic hash of the encrypted data, random padding, nor a random initial vector. As such, if an attacker can cause the right text to be encrypted in a Kerberos service key, then the attacker can fabricate a ticket. Normally an attacker does not control much of the text in the ticket so this cryptographic weakness is hard to exploit. The initial portion of a Kerberos 4 ticket is a one-byte flags field (either 0 or 1) followed by the client name. Since all of this initial text is constant, the beginning of a ticket for a given client/service will be the same. An attacker thus knows the encryption of the initial plaintext in the service key. If an attacker can control client principals whose names he chooses, then he can get the encryption of these plaintext values in the service key.\" Because this is a flaw in the Kerberos 4 protocol, all implementations of vulnerable functionality are vulnerable. This includes all implementations of the Kerberos version 4 Key Distribution Center that allow cross-realm authentication and all implementations of the Kerberos version 5 Key Distribution Center that also implement a KDC for the Kerberos version 4 protocol and use the same keys for version 4 and version 5. The Kerberos version 5 protocol is not vulnerable to this issue. However, implementations that implement both Kerberos 4 and Kerberos 5 tend to use the same keys for both protocols. As a result, the Kerberos 4 vulnerabilities can be used to compromise Kerberos 5 services at sites using these implementations.","impact":"A number of specific impacts can result because of this vulnerability: An attacker controlling a Kerberos version 4 shared cross-realm key can impersonate any principal in the remote realm to any service in the remote realm. This can lead to root-level compromise of a KDC, along with compromise of any hosts that rely on authentication provided by that KDC. This attack may be performed against cross-realm principals, thus allowing an attacker to hop realms and compromise any realm that transitively shares a cross-realm key with the attacker's local realm. Related, but more difficult attacks may be possible without requiring the control of a shared cross-realm key. At the very least, an attacker capable of creating arbitrary principal names in the target realm may be able to perform the attack. In conjunction with VU#442569, an attacker may impersonate any principal to a service keyed with triple-DES Kerberos version 4 keys, given the ability to capture network traffic containing tickets for the target client principal.","resolution":"Apply a patch from the vendor The MIT Kerberos team has released MIT krb5 Security Advisory 2003-004 regarding this vulnerability. Sites are strongly encouraged to apply the patches referenced in the advisory.","workarounds":"Workarounds In the absence of patching, the following workarounds have been proposed by the MIT Kerberos team: 1) V4 Cross Realm Considered Harmful Kerberos implementations should gain an option to\n    disable Kerberos 4 cross-realm authentication both in the KDC and\n    in any implementations of the krb524 protocol. This configuration\n    should be the default. 2)  Application Migration Application vendors and sites should migrate from Kerberos version 4\n    to Kerberos version 5. The OpenAFS community has introduced features\n    that allow Kerberos 5 to be used for AFS in OpenAFS 1.2.8. Patches\n    are available to add Kerberos 5 support to OpenSSH. Several other\n    implementations of the SSH protocol also support Kerberos 5. Applications such as IMAP, POP and LDAP already support Kerberos 5. 3) TGT Key Separation One motivation for the V4 triple DES support is that if a single\n    DES key  exists for the TGT principal then an attacker can  attack\n    that key both for v4 and v5 tickets. Kerberos\n    implementations should gain support for a DES TGT key that is used\n    for v4 requests but not v5 requests. 4) Remove Triple DES Kerberos 4 Support The cut and paste attack is a critical failure in MIT's attempt at\n    Kerberos 4 Triple DES. Even without cross-realm authentication,\n    this can be exploited in real-world situations. As such the\n    support for 3DES service keys  should be disabled.","sysaffected":"","thanks":"The CERT/CC thanks Sam Hartman, Ken Raeburn, and Tom Yu of the Kerberos group at MIT for their detailed analysis and report of this vulnerability.","author":"This document was written by Chad Dougherty.","public":["h","t","t","p",":","/","/","w","e","b",".","m","i","t",".","e","d","u","/","k","e","r","b","e","r","o","s","/","w","w","w","/","a","d","v","i","s","o","r","i","e","s","/","M","I","T","K","R","B","5","-","S","A","-","2","0","0","3","-","0","0","4","-","k","r","b","4",".","t","x","t"],"cveids":["CVE-2003-0138"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2003-02-07T14:34:59Z","publicdate":"2003-03-15T00:00:00Z","datefirstpublished":"2003-03-20T15:48:45Z","dateupdated":"2003-05-09T19:18:03Z","revision":18,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"20","cam_exploitation":"0","cam_internetinfrastructure":"18","cam_population":"10","cam_impact":"19","cam_easeofexploitation":"10","cam_attackeraccessrequired":"10","cam_scorecurrent":"13.5375","cam_scorecurrentwidelyknown":"13.5375","cam_scorecurrentwidelyknownexploited":"20.6625","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":13.5375,"vulnote":null}