Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add rate limiting to auth, public share pages and metadata fetching

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
html

調査の方向性

LearnStack/Components/Pages/SharedView.razor:4 と LearnStack.Core/Extensions/ServiceCollectionExtensions.cs:29-34 から始め、/Account/*、/shared/{token}、/friends/accept/{token}、および OpenGraph fetch のエントリポイントを追跡します。繰り返しのログイン試行が 429 を返し、share-token の列挙がスロットリングされ、1 ユーザーが送信 HTTP リクエストを飽和させられない状態になれば完了です。

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

説明

enhancement

Tier 2 — security

Problem

Nothing in the app is throttled. In particular:

  • Login and registration accept unlimited attempts (Identity lockout helps, but only per-account).
  • /shared/{token} is anonymous and unthrottled, so share tokens can be brute-forced and the page is a free amplification target (it loads full resource rows including thumbnails).
  • The metadata fetcher lets any authenticated user make the server issue arbitrary outbound HTTP requests on demand, with no per-user budget.
Evidence
  • No AddRateLimiter anywhere in the repository
  • LearnStack/Components/Pages/SharedView.razor:4 — [AllowAnonymous]
  • LearnStack.Core/Extensions/ServiceCollectionExtensions.cs:29-34 — unthrottled HttpClient
Proposed fix
  1. builder.Services.AddRateLimiter(...) with a fixed window on /Account/*.
  2. A per-IP window on /shared/{token} and /friends/accept/{token}.
  3. A per-user concurrency limiter around OpenGraph fetches.
Acceptance criteria
  • Repeated login attempts from one IP are throttled with 429
  • Share-token enumeration is rate-limited
  • One user cannot saturate the outbound HTTP client
主要言語
HTML
スター
10
フォーク
0
平均マージ
2時間 35分
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

kasuken/LearnStack のほかの issue

kasuken/LearnStack の issue をすべて見る

似ている issue

Security の issue をもっと見る

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

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