Rate-limit all password verification attempts (#81) #90

Merged
poslop merged 1 commits from fix-81-password-ratelimit into main 2026-09-09 15:59:24 +00:00
Owner

Closes #81. GET ?password= and X-Paste-Password verifications now go through the per-IP unlock limiter (5/min per paste) alongside the existing POST form path. Regression tests prove repeated wrong passwords via GET yield 429.

Closes #81. GET ?password= and X-Paste-Password verifications now go through the per-IP unlock limiter (5/min per paste) alongside the existing POST form path. Regression tests prove repeated wrong passwords via GET yield 429.
poslop added 1 commit 2026-09-09 15:58:21 +00:00
Rate-limit all password verification attempts (#81)
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 22s
99a044e8a2
GET ?password= and X-Paste-Password header checks in handleGetPaste were
unlimited (pentest2: 8 wrong = 8x401, no 429). Gate every password
verification on the same per-IP+paste unlock limiter (5/min, 429 with
Retry-After) already used by the POST unlock form path.

Regression tests: repeated wrong passwords via GET ?password= and via
header must eventually 429; correct password within burst still 200.

Fixes #81
poslop merged commit 806798fae6 into main 2026-09-09 15:59:24 +00:00
Sign in to join this conversation.