OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence
OpenC3 cosmos
OpenC3 cosmos
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to versions 6.10.5 and 7.0.0-rc3, the OpenC3 password change functionality allows a user to change their password without providing the old password, by accepting a valid session token instead. In assumed breach scenarios, this behaviour can be exploited by an attacker who has already obtained a valid session token, to gain persistence in hijacked account (including admin) and prevent legitimate users from accessing the account. This issue has been patched in versions 6.10.5 and 7.0.0-rc3.
From the CVE record · GitHub_M
OpenC3 COSMOS password changes accept a valid session token without requiring the old password. An attacker who has obtained a valid session token can change the account password, retain access to the hijacked account, and prevent the legitimate user from accessing it, including for admin accounts.
Teams running RubyGems openc3 versions below 6.10.5 or from 7.0.0.pre.rc1 to before 7.0.0-rc3, or PyPI openc3 versions below 6.10.5, should check their deployments.