Skip to content

Fix a race condition that could allow same Salt/IV to be reused#201

Merged
riobard merged 1 commit intoshadowsocks:masterfrom
xiaokangwang:dev-ssivracecond
Mar 12, 2021
Merged

Fix a race condition that could allow same Salt/IV to be reused#201
riobard merged 1 commit intoshadowsocks:masterfrom
xiaokangwang:dev-ssivracecond

Conversation

@xiaokangwang
Copy link
Copy Markdown

If the attacker have precise timing, it could be possible for it to trick ss into accept multiple connection with the same Salt/IV if they all pass the Salt/iv test at the same time if while other connection c.Encrypter(salt) is in process, and before they add that IV into the anti-replay pool.

This PR does not solve any protocol weakness.

@riobard riobard merged commit 854e747 into shadowsocks:master Mar 12, 2021
@riobard
Copy link
Copy Markdown

riobard commented Mar 12, 2021

Thanks for the PR! :)

xiahaijiao pushed a commit to xiahaijiao/go-shadowsocks2 that referenced this pull request Jan 10, 2024
Fix a race condition that could allow same Salt/IV to be reused
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.

2 participants