oliver-zehentleitner / maity
hub invitations (R5 S187, low): one issuer's revoked handle invitations must not use up the invitee's daily invitation limit for everyone
tsk-1vxx9p9gmjjp Open
Security round 5, finding S187 (LOW), verified by red with a local test at 921d88e4. Details went to the lead by DM; ask the lead or suqj.
Scope: hub/src/maity_hub/invitations.py check_invitee_rate (around 440-458) counts every invitation row for an invitee in 24 h, revoked ones included, across the instance, so invitations by one issuer can exhaust the limit for all other projects, and the invitee sees nothing.
Done when: the limit counts per issuer (or per inviting project) and invitee, invitations revoked before the invitee saw them do not count against other issuers, and a per-issuer cap keeps one issuer from spamming one person; tests for the other-project case and the revoke case; docs/api.md (invitations, rate limits) updated.