RocketChat Rocket.Chat
Rocket.Chat: Email Parameter Fallback Leads To Account Takeover Within Apple OAuth
Rocket.Chat is an open-source, secure, fully customizable communications platform. Prior to 8.5.1, 8.4.4, 8.3.6, 8.2.6, 8.1.6, 8.0.7, and 7.10.13, in apps/meteor/app/apple/server/loginHandler.ts, handleIdentityToken parses a JWT issued by Apple during the OAuth flow. The try block checks for an email parameter. If the JWT does not contain an email address, the application falls back to accepting an arbitrary email value supplied directly in the request. Attackers are able to forge Apple JWTs that do not contain an email address and leverage this vulnerability to carry out account takeover attacks. This vulnerability is fixed in 8.5.1, 8.4.4, 8.3.6, 8.2.6, 8.1.6, 8.0.7, and 7.10.13.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8.5.0-rc.0, < 8.5.1
- >= 8.4.0-rc.0, < 8.4.4
- >= 8.3.0-rc.0, < 8.3.6
- >= 8.2.0-rc.0, < 8.2.6
- >= 8.1.0-rc.0, < 8.1.6
- >= 7.11.0-rc.0, < 8.0.7
- < 7.10.13
Fixed in 8.5.1, 8.4.4, 8.3.6, 8.2.6, 8.1.6, 8.0.7, 7.10.13
Mitigation
Upgrade Rocket.Chat to 8.5.1 or 8.4.4 or 8.3.6 or 8.2.6 or 8.1.6 or 8.0.7 or 7.10.13 or later.
References
- Vendor advisory github.com/RocketChat/Rocket.Chat/security/adv…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.