Commit c7a6a92
security(authz): gate mark_revoked on ALLOW_USER_OFFBOARD, not the read perm (F-006)
mark_revoked performs a destructive cross-user access revocation but was gated
only by @user_with_permission(["VIEW_USER_ACCESS_LIST"]) — a read permission.
Any holder of that read perm could revoke any user's access (CTO-4858, CVSS 8.1
IDOR). Switch to ALLOW_USER_OFFBOARD, the permission already used to authorize
revocation/offboarding elsewhere (group_helper.revoke_access_from_group,
models User.offboard). The read view all_user_access_list keeps VIEW_USER_ACCESS_LIST.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0ae4f0b commit c7a6a92
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| |||
0 commit comments