Rate-limit login and sign-up attempts

Đang mở
#16 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
flask, python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
CSS
Star
1
Fork
1
Merge trung bình
39 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NotADIM2/GameVault

Tất cả issue của NotADIM2/GameVault

Issue tương tự

Thêm issue về Security

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.