Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

GET /users/admin leaks other admins' study assignments via adminOfStudies field

Aperta
#922 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
security

Direzione di ricerca

Start by tracing the GET /users/admin handler and its security decoration, then compare how it scopes adminOfStudies with the behavior of GET /studies. The report shows that a StudyAdmin can see another admin's study assignments; first determine whether this is intended, especially for multi-tenant deployments. Done means the intended access behavior is established and the issue is resolved accordingly.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend bug question

GET /users/admin returns each admin's adminOfStudies array (with study id and name) in the response, and StudyAdmins can call this endpoint per the security decoration.

Logged in as Emily (StudyAdmin of Short Study only), the response included Jane Smith with adminOfStudies: [{ id: 2, name: "Seed Study" }, { id: 1, name: "Short Study" }]. So Seed Study leaks to Emily via Jane's array, even though GET /studies correctly hides it from her scope.

Filing as a question - is this intended behaviour? Might matter more in multi-tenant deployments since CTRL supports multiple Organisations per instance.

Related to #921.

Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
14h 50m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Garvan-Data-Science-Platform/ctrl

Tutte le issue di Garvan-Data-Science-Platform/ctrl

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.