Commit Graph
12 Commits
Author SHA1 Message Date
LainHE 4816c7ea62 fix(acceleration-relay): validate resolved targets to close SSRF
The relay's private-target guard ran on the caller-supplied hostname while the
connection was made to the DNS-resolved address, so any hostname could reach
loopback or an internal host even with allowPrivate=false. IPv4-mapped IPv6
literals such as ::ffff:127.0.0.1 slipped through the IPv6 branch as well.

- reuse isRestrictedAddress() instead of the weaker local isPrivateAddress()
- resolve first, then reject when any resolved address is restricted, so a
  mixed public/private DNS answer cannot be used to reach an internal host
- release the freshly created session before rejecting a blocked target
- add an injectable lookupAddresses option for deterministic tests
- mirror the same resolve-then-validate ordering in the acceleration PoC relay
- add src/server/acceleration-relay.test.ts (6 tests) to the test script

Verified: tsc clean; the 6 new tests fail 4/6 before the fix and pass 6/6 after;
the acceleration PoC still reports ACCELERATION_POC_OK.
2026-10-15 16:34:07 +08:00
illusia 02441410a0 feat(web): implement open skin layouts and migrate Illusia 2026-10-10 15:53:38 +08:00
illusia 568b8fd8be Prepare 0.2.6-preview and remove private deployment references 2026-10-03 23:25:58 +08:00
illusia 0a4fff6f6f feat: report live voice status and harden target handling 2026-09-28 22:28:16 +08:00
illusia e09a19b7b4 feat(skins): ship protected built-ins and instance defaults 2026-09-27 00:45:29 +08:00
illusia 45584810a2 test: add IPv6 acceleration smoke 2026-09-10 11:54:31 +08:00
illusia bfefd053a0 feat: add acceleration tunnel proof of concept 2026-09-10 11:29:18 +08:00
illusia b298496911 fix: make sdk release preparation deterministic 2026-09-04 08:27:28 +08:00
illusia afbbd1e2d4 refactor: migrate to maintained TeamSpeak SDK 2026-09-02 23:27:32 +08:00
illusia 96ef77c789 feat: add real TeamSpeak whisper routing 2026-09-01 18:08:07 +08:00
illusia 509dc038c1 M006: add scoped chat and client interactions 2026-09-01 17:32:00 +08:00
illusia 8d9b8d5627 Initial release 2026-08-31 15:43:50 +08:00