Security: clamp expires_in at API boundary (reject zero/negative, cap 1yr) #60

Closed
opened 2026-09-09 13:57:25 +00:00 by poslop · 0 comments
Owner

Split from #34 (LOW).

expires_in accepts negative/zero durations (already-expired pastes) and 87600h (10y) while UI caps at 1yr. Server-side clamp: min 1min, max 1yr.

Split from #34 (LOW). expires_in accepts negative/zero durations (already-expired pastes) and 87600h (10y) while UI caps at 1yr. Server-side clamp: min 1min, max 1yr.
Sign in to join this conversation.