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

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

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

xiaokangwang
Copy link

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

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.

None yet

2 participants