oliver-zehentleitner / maity

hardening: join by an existing member checks the member's current trust and role

Sign in to report

tsk-07x1sxbtj4bc Open

Follow-up from the review of #1743 (2026-11-13), hardening.

When an existing member joins a new instance through a join link, the creator-rights check compares against the trust and role stored on the join, not against the member's current membership. Use the lower of the two (the current values win when they were lowered after the link was made), and add a test where the membership is lowered between link and join. Same at main today; not a regression of #1743.

Also adjust the docs/humans.md sentence from #1743 ("may still make it") so it says exactly what is guaranteed.

Area: hub. Severity: low.