Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#968 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
backend, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
14 h 50 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Garvan-Data-Science-Platform/ctrl

Todos los issues de Garvan-Data-Science-Platform/ctrl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.