[Bug]: Room invites from any member and in-memory maps that only clean up on insert
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 48/100
Piste de recherche
Two separate fixes. Start with src/api/together.rs, the Command::Invite handler: read how host/permission state is tracked for a room, then decide the smallest rule that lets the host (and only the host) invite, plus a bound on the invited list. Then open src/auth/passkeys.rs around line 25 to see how the challenge map is keyed and where entries are added, and add a sweep or a size cap. Done means an unprivileged member can no longer invite, and repeated startPasskeySignIn calls cannot grow the map without bound; a security-sensitive change like this will need a maintainer's review of the chosen policy.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a code review session with @PhrolovaMoe. It was found by reading the code and hasn't been reproduced on a running server.
Version
0.40.0 (feat/desktop, 017a837b)
Area
Streaming / playback
What happened?
- Anyone in a watch-together or listening room with the
watch_togetherpermission can invite any user id (src/api/together.rsCommand::Invite), including people who got into the room through library access rather than as host. Invites grant access to that room's title even to users who can't see its library, so this hands out access the host didn't choose. Theinvitedlist also has no limit. - Passkey challenges (
src/auth/passkeys.rs:25) only drop expired entries when a new one is added.startPasskeySignInneeds no sign-in, so a flood of requests for an account with passkeys keeps up to 5 minutes' worth of challenges in memory.
Expected behavior
Only the host (or whoever the host allows) can invite, and unauthenticated requests can't grow server memory without bound.
Suggested fix
Restrict Invite to the host (or members the host allows), cap invited, and cap the challenge map size (or sweep it on a timer).
- Langage dominant
- TypeScript
- Étoiles
- 4
- Forks
- 1
- Merge moyen
- 4 h 49 min
- PR mergées (30 j)
- 5
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tinystream-dev/tinystream
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
tinystream-dev/tinystream#132 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
tinystream-dev/tinystream#131 ·
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
tinystream-dev/tinystream#129 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
tinystream-dev/tinystream#128 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tinystream-dev/tinystream#124 ·
Toutes les issues de tinystream-dev/tinystream
Issues similaires
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
sandbox-quantum/switch#2163 ·
Les mainteneurs répondent en général sous 1 jour
-
automated issue report
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area/dashboard kind/bug QA/dev-automation
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
bug pydanty:is-working
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
pydantic/pydantic-ai#13939 ·
Les mainteneurs répondent en général sous 1 jour
-
self-host
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
funmusicplace/mirlo#2625 ·
Les mainteneurs répondent en général sous 1 jour