Skip to content

Make a reused Sentinel or pairing PSK a pairing protocol error - #311

Open
maximmaxim345 wants to merge 1 commit into
mainfrom
fix/reused-psk-protocol-error
Open

maximmaxim345 wants to merge 1 commit into
mainfrom
fix/reused-psk-protocol-error

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

The spec requires the long-term PSK to be drawn from a CSPRNG and distinct from the pairing PSK, but didn't say what the server does when a client delivers the Sentinel PSK or the pairing PSK instead. Accepting it leaves a pairing record keyed by a public constant, or by a secret anyone with the pairing token holds.

The server now treats it as a protocol error and persists nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant