Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#968 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
backend, security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
4
Forks
0
Merge médio
8h 37min
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Garvan-Data-Science-Platform/ctrl

Todas as issues de Garvan-Data-Science-Platform/ctrl

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.