REDCap imports send the study's token to any host in redcapURL
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
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
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
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Garvan-Data-Science-Platform/ctrl
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
admin-client backend bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
backend bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Garvan-Data-Science-Platform/ctrl#970 · 1 Kommentar ·
-
backend bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
backend bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Alle Issues in Garvan-Data-Science-Platform/ctrl
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
wormhole-foundation/wormhole#5062 ·
Maintainer antworten meist innerhalb von 1 Tag
-
internal os specific
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
frostney/GocciaScript#1688 ·
Maintainer antworten meist innerhalb von 1 Tag
-
integration:hermes
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
vectorize-io/hindsight#5592 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
vercel/streamdown#673 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
apache/rocketmq-dashboard#6712 ·
Maintainer antworten meist innerhalb von 3 Tagen