[Bug]: Room invites from any member and in-memory maps that only clean up on insert
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
[!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).
- Linguagem predominante
- TypeScript
- Estrelas
- 4
- Forks
- 1
- Merge médio
- 4h 49min
- PRs com merge (30d)
- 5
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de tinystream-dev/tinystream
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
tinystream-dev/tinystream#132 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
tinystream-dev/tinystream#131 ·
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
tinystream-dev/tinystream#129 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
tinystream-dev/tinystream#128 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tinystream-dev/tinystream#124 ·
Todas as issues de tinystream-dev/tinystream
Issues semelhantes
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
sandbox-quantum/switch#2163 ·
Mantenedores costumam responder em até 1 dia
-
automated issue report
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area/dashboard kind/bug QA/dev-automation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
bug pydanty:is-working
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
pydantic/pydantic-ai#13939 ·
Mantenedores costumam responder em até 1 dia
-
self-host
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
funmusicplace/mirlo#2625 ·
Mantenedores costumam responder em até 1 dia