Missing Rate Limiting on Paper Requests (/api/request)

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
mongodb, typescript

調査の方向性

Find the /api/request handler and compare its rate limiting with /api/upload and /api/report-tag. Start by tracing how the request route writes to MongoDB and calls PostHog; add protection consistent with the existing routes, then verify repeated POST requests are limited.

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

説明

Unlike /api/upload and /api/report-tag, /api/request has zero rate limiting. Any bot or script can loop thousands of POST requests in a few seconds. Each request writes to MongoDB and calls posthog.capture() and await posthog.flush(), which can exhaust MongoDB storage and burn through your PostHog analytics quota.

主要言語
TypeScript
スター
22
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

CodeChefVIT/papers-codechef のほかの issue

CodeChefVIT/papers-codechef の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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