Skip to content
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

Dropping old responder doesn't work if we have a trusted receiver public permanent key. #133

Open
rustonaut opened this issue Sep 8, 2021 · 1 comment
Labels

Comments

@rustonaut
Copy link

The protocol says:

drop the oldest responder that did not send a message to it

The code do decide if "that did not send a message to it" applies is:

if (r.handshakeState == ResponderHandshakeState.NEW) {

Pub if we have a known trusted receivers public key then here:

responder.handshakeState = ResponderHandshakeState.TOKEN_RECEIVED;

We set the state to TOKEN_RECEIVED for every new responder before they send us any message.

Hence as long as I didn't overlook anything we won't ever drop any old responders as we assume we got
valid token message from all of them.

@lgrahl
Copy link
Member

lgrahl commented Sep 9, 2021

Agree that there is an issue introduced by the state skipping even though the responder is still inactive.

Security impact: Minor, DoS with prior knowledge required.

@lgrahl lgrahl added the bug label Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants