Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade')

Incomplete Base
Structure: Simple
Description

A protocol or its implementation supports interaction between multiple actors and allows those actors to negotiate which algorithm should be used as a protection mechanism such as encryption or authentication, but it does not select the strongest algorithm that is available to both parties.

Extended Description

When a security mechanism can be forced to downgrade to use a less secure algorithm, this can make it easier for attackers to compromise the product by exploiting weaker algorithm. The victim might not be aware that the less secure algorithm is being used. For example, if an attacker can force a communications channel to use cleartext instead of strongly-encrypted data, then the attacker could read the channel by sniffing, instead of going through extra effort of trying to decrypt the data using brute force techniques.

Common Consequences 1
Scope: Access Control

Impact: Bypass Protection Mechanism

Detection Methods 1
Automated Static AnalysisHigh
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Observed Examples 5
CVE-2006-4302Attacker can select an older version of the software to exploit its vulnerabilities.
CVE-2006-4407Improper prioritization of encryption ciphers during negotiation leads to use of a weaker cipher.
CVE-2005-2969chain: SSL/TLS implementation disables a verification step (Missing Cryptographic Step) that enables a downgrade attack to a weaker protocol.
CVE-2001-1444Telnet protocol implementation allows downgrade to weaker authentication and encryption using an Adversary-in-the-Middle AITM attack.
CVE-2002-1646SSH server implementation allows override of configuration setting to use weaker authentication schemes. This may be a composite with External Control of Critical State Data.
Modes of Introduction
Architecture and Design
Related Weaknesses
Notes
RelationshipThis is related to Channel Accessible by Non-Endpoint, although not all downgrade attacks necessarily require an entity that redirects or interferes with the network. See examples.