On Feb 27, 2007, at 6:08 PM, Paul Hoffman wrote:

At 4:17 PM -0800 2/27/07, Jim Fenton wrote:
With a mechanism in SSP to specify the signature algorithms that should be present, it is always necessary to consult SSP to find out the list of required signature algorithms.

Why?!?! If one of the signatures is good, there is no need to do the SSP lookup.

This is purely hypothetical. This is not to suggest DKIM has some major flaw, only that once it starts being used, better approaches might be found.

Imagine a different canonicalization handling EAI related headers avoids some exploit induced by a diffusion of approaches dealing with these oft modified headers. The new canonicalization algorithm removes ambiguity and secures critical information while not also directly capturing the oft modified headers. This agility is preferred by international senders over the canonicalization algorithms currently defined. The same approach could be used with any algorithmic aspect of the DKIM signing process. Imagine also that signing existing DKIM headers proves problematic when other DKIM headers are added, but then perhaps rearranged.

A downgrade attack can be prevented without the use of overlapping signatures by allowing a "algorithmic signer policy" to be placed within the existing key, such as a parameter that explicitly defines the key/signature pair being deprecated. This parameter could be as simple as "d=c/eai", where 'c/eai' represents the shiny new algorithm "c=eai" specified within the signature. An upgraded verifier will likely select the improved algorithm found in one of the two signatures added to the message.

When a message has had the signature containing the "c=eai" removed, and the verifier supports "c=eai", then upon seeing the "d=c/eai" parameter within a key supporting the signature containing "c=simple", this message can be detected a possible downgrade attack. This "d=c/eai" represents an aspect of signer policy which is extremely important when making an assertion that "all messages are signed" in separate policy record.

An attacker might remove the signature supporting "c=simple" knowing most verifiers are unable to handle the new "c=eai", but a key check makes it appear as if the sender no longer signs using "c=simple". An attacker may also remove the signature supporting "c=eai" and then make changes where some verifiers do the wrong thing in the face of the EAI complexities. Again, this is purely hypothetical. At some point, any algorithm being used in DKIM will need to be deprecated. Only the signer is able to support a deprecation strategy. DKIM currently does not support a practical method, but can be added now without making any changes to current implementations.

-Doug
_______________________________________________
NOTE WELL: This list operates according to http://mipassoc.org/dkim/ietf-list-rules.html

Reply via email to