-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derive accept confirmation from the handshake secret #353
Conversation
I have really mixed feelings about this. On the one hand, it's kind of annoying extra complexity. OTOH, given how hard a time we have had by reasoning about the security of ECH, I think better safe than sorry. |
@cjpatton can you please rebase this PR? |
7ea38fd
to
ef03c58
Compare
@cjpatton this is nice -- thanks! I think the new type name for the special SH is fine, though if someone has an idea for a better name, let's consider it. |
This mitigates a large class of "don't stick out" attackers. It was originally suggested by Karthik Bhargavan on the mailing list. Co-authored-by: Christopher Wood <caw@heapingbits.net>
a90b642
to
05baecf
Compare
This change is definitely more invasive than the existing signal, but not all that hard to implement. (E.g., cloudflare/go#38.) |
Thanks, @cjpatton! @dmcardle and @kjacobs-moz, if you can also comment on the implementation difficulty, we can try and land this soon. |
This seems pretty straightforward. I don't think it would be too difficult to do in NSS. |
I think on balance we should do this. |
Originally suggested by Karthik Bhargavan, this change mitigates an active "don't stick out" attack pointed out by Christian Huitema. The attack is as follows.
CH
) and forwards it to theserver.
SH
andEE
intoSH'
andEE'
respectively, as follows.SH'
is just likeSH
except that thekey share
g^y
is replaced with key shareg^a
, wherea
is known to theattacker.
EE'
is a malformed handshake message encrypted using a key derivedfrom
g^xa
. Finally, it sendsSH'..EE'
to the client.that real-ECH was used. Otherwise, it guesses that grease-ECH was used.