Skip to content

Security: Changing /nick into an admin nick gives you op #301

Closed
@iriediese

Description

Expected Behavior

Admin rights (op) should be public-key based. Even if /nick is used to change your nickname into one belonging to an admin, you should not have any different priviledges.

Actual Behavior

When a non-admin changes their /nick to that of an admin, they get admin priviledges. This only happens if the admin is online at the time. Since two people cannot have the same name, the admin needs to also change their name beforehand.

Steps to reproduce behavior

scenario 1:

foo1 is admin. foo2 is not. Both need to be connected to the chat.
foo1 changes their name to foo3. they are no longer an admin
foo2 changes their name to foo1. they are now an admin.

scenario 2:
foo1 is admin. foo1 is connected to the chat.
foo1 changes their nick to foo2. they are no longer an admin.

The first 2 scenarios only happen if both are connected. The following, Scenario 3, seems to work as intended.
scenario 3:
foo1 is admin, foo2 is not. Neither are connected.
foo2 connects. foo2 changes nick to foo1.
foo1 connects. Their nick will be Guest1.
Guest1 is an admin. foo1 is not.

Additional Comments

It probably has to do with the manipulation of the IDs happenning upon changing /nicks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions