[security] handleTopic: enforce channel membership check #33
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/chat#33
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From QA Audit (#25 comment)
Severity: BLOCKER
handleTopicininternal/handlers/api.godoes NOT check that the user is a member of the channel before allowing them to set a topic. Any authenticated user can set the topic on any channel they haven't joined.Suggested fix: Add an
IsChannelMembercheck beforeSetTopic, similar tohandleChannelMsg.