Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

REDCap imports send the study's token to any host in redcapURL

Offen
#968 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
backend, security

Rechercherichtung

Start at PATCH /studies/{studyId} and trace how redcapURL and redcapToken are stored, then find the participant and instrument REDCap import request paths. Check the deployment configuration and related issue #832 for context. Done means imports only send the token to an allowed host, and changing the URL clears the stored token so it must be entered again.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

backend bug

PATCH /studies/{studyId} accepts any value for redcapURL, and the REDCap API imports (participants and instruments) POST the study's redcapToken to that URL. Since #832 the token is write-only, and the API only returns hasRedcapToken. But anyone who can edit the study can change where the token is sent, which undoes #832's protection. It also lets the backend send requests to any host it can reach.

Fix: check the URL's host against an allowlist that each deployment configures, and clear the stored token whenever redcapURL changes, so a new URL needs the token entered again.

Related: #832.

Vorherrschende Sprache
TypeScript
Sterne
4
Forks
0
Ø Merge
14 Std. 50 Min.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Garvan-Data-Science-Platform/ctrl

Alle Issues in Garvan-Data-Science-Platform/ctrl

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.