Rate-limit login and sign-up attempts

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
flask, python

Línea de trabajo

Start at the application entry point to see how the Flask app is created and where the blueprints/routes for POST /login and POST /register live. Add Flask-Limiter to requirements.txt, initialise the limiter against the app, then decorate the two routes with the per-IP limits given. Register a 429 error handler that renders the friendly message without echoing whether the email exists, and confirm by hitting the endpoints repeatedly past the threshold.

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

Descripción

backend enhancement help wanted

Nothing currently stops someone from guessing passwords over and over. Add rate limiting before the site is deployed publicly.

  • Limit POST /login (e.g. 5 per minute per IP) and POST /register (e.g. 3 per minute per IP)
  • Show a friendly "Too many attempts, try again in a minute" message
  • Use a well-maintained library such as Flask-Limiter and add it to requirements.txt
  • Don't reveal whether an email is registered in the error message
Lenguaje dominante
CSS
Estrellas
1
Forks
1
Merge medio
39 min
PR fusionados (30 d)
6

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 NotADIM2/GameVault

Todos los issues de NotADIM2/GameVault

Issues similares

Más issues de Security

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.