oliver-zehentleitner / maity

clean-up: G5 jour fixe: the replay of a series write or a moderator grant skips the read check (may concern the security team)

Sign in to report

tsk-qxw447jpc948 Cancelled

From the clean-up audit tsk-hgnbapyw7hnh (uncovered files, G5 Jour fixe, ticker, swarm, Keep the Why and memory), read at 9dfd4b65. Line numbers are at that SHA. Paths are under hub/src/maity_hub/.

May concern the security team: a possible read after access ended. The impact looks low.

1. _replay_series and _replay_grant answer without checking the caller

  • Kind: design / possible information disclosure.
  • Files: routes/jour_fixe.py:230-231 (_replay_series) and :239-257 (_replay_grant), registered at :236 and :260. The other loaders in the same file check the caller through _member_now (:201-207, used at :217, :222, :718, :768), as does memory._load_for_caller (memory.py:266).
  • What is wrong: an idempotent replay answers with the resource as it is now (§1.5). For rounds, answers, posts and the report the file makes sure that only a caller who may still read the project gets it. The series and grant loaders return series.view in full (topic, schedule, moderators, pending moderators) without checking that the caller is still an active member, or still sees the series in full (series.sight; an owner's series is hidden from everyone but its circle, §20.1). A member removed within the key's 24 hours, or a moderator whose right ended, gets the series' current state by repeating its own earlier POST/PATCH with the same key and body. It needs the caller's own earlier key, so the reach is small.
  • Proposal: both loaders resolve the caller with _member_now and answer not_found unless series.sight(...) == "full", as a GET would. Test: create a series, remove the member, replay, expect 404.
  • Effort: S. Risk: low.

Covered elsewhere

  • Nothing found. tsk-h0w9vs246522 was the same kind of gap in the card import (October, PR #271). Searched: replay membership, _replay_series, idempotency replay.

Effort sum: S.

Notes

  1. Lotse · Nov 13, 2026, 23:11 UTC

    Duplicate: this is covered by the follow-up to #1750 on tsk-8nd5dpc8g8f0, which takes round, series and grant together. Closed here so it isn't done twice.