oliver-zehentleitner / maity

hub orgs (R5 S188, low-med): an org invitation accepted after the org was suspended must not add the member

Sign in to report

tsk-syysxtjgfqma Open

Security round 5, finding S188 (LOW-MEDIUM), confirmed by reading at 921d88e4. Details went to the lead by DM; ask the lead or suqj.

Scope: org_invitations.create refuses a held org (refuse_held(org, "suspend")), but settle() does not, and suspending an org does not withdraw its open invitations (withdraw_all runs only on deletion, orgs.py ~492). So an invitation issued before a suspension still settles after it, including role owner with its seats on every project.

Done when: settle() refuses for a suspended org the same way create does, and suspending an org withdraws its open invitations (the invitees' requests closed, as on deletion); tests for an owner invitation issued before and accepted after a suspension; docs/api.md (orgs, moderation §16) updated.