Skip to content

fix(server/groups): add restriction to setgroup command#244

Merged
LukeWasTakenn merged 1 commit intooverextended:mainfrom
Zockerp:main
Apr 13, 2025
Merged

fix(server/groups): add restriction to setgroup command#244
LukeWasTakenn merged 1 commit intooverextended:mainfrom
Zockerp:main

Conversation

@Zockerp
Copy link
Copy Markdown
Contributor

@Zockerp Zockerp commented Apr 13, 2025

Hi there,

I noticed that the setgroup command does not appear to have any permission checks, such as restricted: group.admin or something similar.

If I'm understanding the current implementation correctly, this would mean that any user can execute the command and assign themselves to any group, including admin-level groups. This could potentially lead to serious security and access control issues.

Could you confirm whether this is intended behavior or an oversight?
In this PR, I’ve added a restriction requiring the group.admin permission.

Thanks in advance!

Signed-off-by: Marco <68809193+Zockerp@users.noreply.github.com>
@LukeWasTakenn LukeWasTakenn merged commit 6a746a1 into overextended:main Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants