Online Status of arbitrary users can be changed
- Triaged in 16 days
- Fixed in 6 months
- Disclosed after 5.5 years
Summary
A third-party Meteor module Konecty/meteor-user-presence was found to improperly authenticate user Status changes, so that it is possible to change other users online status by sending HTTP requests or data via WebSocket connection.
Description
With the following payloads, an users online status can be changed without proper authentication:
["{\"msg\":\"method\",\"method\":\"UserPresence:away\",\"params\":[\"$USER_ID\"],\"id\":\"23\"}"]
["{\"msg\":\"method\",\"method\":\"UserPresence:online\",\"params\":[\"$USER_ID\"],\"id\":\"23\"}"]
Expected result is an error, when attempting to change other users status.
It was not possible to reproduce this finding with every user - more investigation required to figure out what sometimes makes it unreliable.
Releases Affected:
Steps To Reproduce (from initial installation to vulnerability):
- Figure out another users
_idfrom client network requests - Send the crafted payload via WebSockets
- Observe status-change in other chat sessions
Suggested mitigation
- Authenticate
UserPresence:*methods in https://github.com/Konecty/meteor-user-presence/blob/04ca1a0c3fe3cd52857012bbad0a02e3e838ff9e/server/server.js#L249-L281
Impact
The online status of arbitrary users can be changed by others.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity access control bug in Rocket.Chat, rated CVSS 5.3. HackerOne made it public on 10 August 2024.
About Access control
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.