[GH-ISSUE #3392] Shadowsocks 2022 ss:// links fail to import: "Can't find the colon separator between method and password" #3242

Open
opened 2026-11-07 17:58:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @RaphaelFakhri on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3392

Describe the bug
Importing a SIP002 ss:// link whose user info is plain method:password instead of base64 fails. SIP022 requires this form for the Shadowsocks 2022 ciphers (2022-blake3-aes-128-gcm, 2022-blake3-aes-256-gcm, 2022-blake3-chacha20-poly1305), so these links cannot be imported at all.

serialization::ss::Deserialize (client/core/utils/serialization/ss.cpp) always passes the URL user name through Utils::SafeBase64Decode. For a plain link the user name is the method alone, so the decoded text has no colon and the parser returns an empty config.

To Reproduce

  1. Copy a link of the form ss://2022-blake3-aes-128-gcm:dGVzdC1rZXktMDEyMzQ1Njc4OWFiY2RlZg%3D%3D@ss.example.com:8388#test.
  2. Import it from the clipboard or the "Insert key" field.
  3. The import fails. ss::Deserialize reports "Can't find the colon separator between method and password".

Expected behavior
The link imports with method 2022-blake3-aes-128-gcm and password dGVzdC1rZXktMDEyMzQ1Njc4OWFiY2RlZg==, as it already does when the same user info is base64-encoded.

Desktop (please complete the following information):

  • OS: any (shared import code)
  • Version: current dev (ac175c8)

Additional context
SIP002: https://shadowsocks.org/doc/sip002.html. SIP022: https://shadowsocks.org/doc/sip022.html. Xray-core supports the 2022 ciphers.

Originally created by @RaphaelFakhri on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3392 **Describe the bug** Importing a SIP002 `ss://` link whose user info is plain `method:password` instead of base64 fails. SIP022 requires this form for the Shadowsocks 2022 ciphers (`2022-blake3-aes-128-gcm`, `2022-blake3-aes-256-gcm`, `2022-blake3-chacha20-poly1305`), so these links cannot be imported at all. `serialization::ss::Deserialize` (`client/core/utils/serialization/ss.cpp`) always passes the URL user name through `Utils::SafeBase64Decode`. For a plain link the user name is the method alone, so the decoded text has no colon and the parser returns an empty config. **To Reproduce** 1. Copy a link of the form `ss://2022-blake3-aes-128-gcm:dGVzdC1rZXktMDEyMzQ1Njc4OWFiY2RlZg%3D%3D@ss.example.com:8388#test`. 2. Import it from the clipboard or the "Insert key" field. 3. The import fails. `ss::Deserialize` reports "Can't find the colon separator between method and password". **Expected behavior** The link imports with method `2022-blake3-aes-128-gcm` and password `dGVzdC1rZXktMDEyMzQ1Njc4OWFiY2RlZg==`, as it already does when the same user info is base64-encoded. **Desktop (please complete the following information):** - OS: any (shared import code) - Version: current `dev` (ac175c8) **Additional context** SIP002: https://shadowsocks.org/doc/sip002.html. SIP022: https://shadowsocks.org/doc/sip022.html. Xray-core supports the 2022 ciphers.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3242
No description provided.