Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Users with create-token permission can create one for admin then...

Open ghost opened this issue 9 years ago • 1 comments

Description:

Server Setup Information:

  • Version of Rocket.Chat Server:
  • Operating System:
  • Deployment Method(snap/docker/tar/etc):
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • Node Version:

Steps to Reproduce:

Create an user, lets say John, with any role. 2. Assign create token to John 3. Now John can create token for admin then he can use it to do crazy stuff

Expected behavior:

I dunno what to say, it looks really not secure to me. Admin users should be president-level of protection...

Actual behavior:

John can access the system as admin via API

Relevant logs:

ghost avatar Nov 08 '17 00:11 ghost

to be addressed via environment variable

makibras avatar Aug 15 '19 18:08 makibras