Validate OAuth login redirects before using them in headers
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- authentication, backend, security
Línea de trabajo
Start at the OAuth entry point where quart.request.args.get("login") is prefix-validated, then trace the value through pending_states to the Refresh response header. Determine the framework-level validation needed before storage and confirm that safe redirects continue to work while CRLF, null bytes, and other header-injection characters are rejected.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The login_uri query parameter is validated to start with / and not //, but is not checked for CRLF sequences, null bytes, or other header-injection characters before being stored in pending_states and later interpolated into the Refresh HTTP response header. While the ASGI server (Hypercorn) sanitizes header values as a secondary defense, the framework itself does not validate this value for the specific context in which it is used (an HTTP header).
Data flow: quart.request.args.get("login") → prefix validation (only) → stored in pending_states → interpolated into Refresh header → response
Attacker capability required: Remote unauthenticated user (can initiate an OAuth login flow with a crafted login parameter).
Impact on success: In the default deployment, Hypercorn rejects CRLF in header values, so no actual header injection occurs. This is a defense-in-depth gap: if the ASGI server were changed or misconfigured, the unsanitized value could enable HTTP response splitting.
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 14
- Merge medio
- 11 h 58 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/infrastructure-asfquart
-
Set connection and total timeouts for OAuth token exchangePosiblemente ocupada @AnKiT-GaRG2 la tomó hace 3 días. Abiertobug priority
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/infrastructure-asfquart#130 ·
Los mantenedores suelen responder en 1 día
-
Document external service endpoints and failure behaviorPosiblemente ocupada @AnKiT-GaRG2 la tomó hace 7 días. Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/infrastructure-asfquart#129 ·
Los mantenedores suelen responder en 1 día
-
Document OAuth callback consistency rulesPosiblemente ocupada @Marrshal15 la tomó hace 25 días. Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
apache/infrastructure-asfquart#126 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ASVS priority
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/infrastructure-asfquart#85 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Triage and track asfquart issuesPosiblemente ocupada @sbp la tomó hace 24 días. Abierto
apache/infrastructure-asfquart#134 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/infrastructure-asfquart
Issues similares
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Git-Hospital/githealthcheck#61 ·
Los mantenedores suelen responder en 1 día
-
changelog investigate
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ramnes/notion-sdk-py#433 ·
-
Partial method descriptors raise on class accessPosiblemente ocupada @Gambit-Checkmate la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 19 días
-
docs pkg:core
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
pydantic/pydantic-ai#11929 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
intake/intake-esm#789 ·