Rate-limit login and sign-up attempts

オープン
#16 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
flask, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
CSS
スター
1
フォーク
1
平均マージ
39分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NotADIM2/GameVault のほかの issue

NotADIM2/GameVault の issue をすべて見る

似ている issue

Security の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。