LabTechUDF / LabTechUDF/python-services
Bug: Email action token not enforced or invalidated, allowing multiple actions on the same event
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Preconditions:
An event exists with status pending review.
Steps to Reproduce:
- Trigger a status update email for an event (e.g., “Approve” / “Reject”).
- Open the email and click the provided action link.
- The event status is updated successfully.
- Reuse the same link or a different link from the same email.
- Observe the behavior.
Expected Result:
The email token is validated and tied to a single action.
Once an action is performed, the token becomes expired/invalid and cannot be reused.
A second attempt with the same token should return an error (e.g., “Token expired or invalid”).
The system should prevent conflicting actions (e.g., approving and then rejecting with the same token).
Actual Result:
The same token can be reused multiple times.
Different actions (approve and reject) can be performed using the same token.
The token is not considered in validation logic after the first use.
'Acceptance Criteria:
Token is strictly validated against the requested action.
After a successful action, the token is invalidated and cannot be reused.
Attempting a second use returns an error message and no status change occurs.
Conflicting actions cannot be performed with the same token.
https://github.com/user-attachments/assets/0aa2a6ab-12e7-4b86-bfc3-53990fc2f93f
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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.
Línea de trabajo
En el issue no se identifican archivos fuente, pruebas ni puntos de entrada. Empieza por localizar el controlador de tokens de acción de correo electrónico y su ruta de validación; se considera terminado cuando las acciones están vinculadas al token y la acción solicitados, el uso correcto invalida el token y la reutilización devuelve un error sin cambiar el estado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- authentication, security
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100