3 ms·
The garage door opener in question is weak. It has rolling codes to deter replay attack, but its behavior in "resynch" mode is a classic example of security by
by stcredzero 17y ago
The garage door opener in question is weak. It has rolling codes to deter replay attack, but its behavior in "resynch" mode is a classic example of security by obscurity: "Send two incorrect codes, then another off by three."
If you're going to have a protection against replay attacks, why are you going to have a resynch scheme so vulnerable? This may or may not not be vulnerable to replay attacks, but it sounds like something kids would use to authenticate entry to a treehouse!
This is especially sad, since freely available block ciphers could do a fine job with a challenge-response protocol, and wouldn't require a resynch function. One could assume that both the opener and the remote are securely in the hands of the owner, so both could be programmed with the same secret key.
Even without challenge-response, a more robust protocol should be possible with a little memory and a time stamp. Just keep a list of last few day's successful attempts, and don't accept any already sent. The encrypted hourly time stamp would be incorporated into the encoded passphrase, and a passphrase from the hour before or hour after would be accepted. A passphrase might consist of a number appended to it's inverse, appended to the timestamp.
The attacker cannot overrun the successful attempt record, because she cannot produce a new successful attempt without the symmetric key, and replaying the old one doesn't do anything.
To make this proof against losing the time synch, just do two things: 1) have the opener adopt the timestamp of the last successful attempt and 2) provide a time-resynch passphrase, which is activated by a different button, and which also results in a "already used" record in the case of a successful attempt.
EDIT: It's gotten to the point that I can imagine the lack of an idiotic law like the DMCA could be a strategic advantage for some other country, which will result in far greater technical innovation. (China, perhaps?)