CVE-2022-36076
NodeBB account takeover via SSO plugins
Impact
_This is a historical security advisory, pertaining to a vulnerability that was reported, patched, and published in 2021. It is listed here for completeness and for CVE tracking purposes._ ### Impact Due to an unnecessarily strict conditional in the code handling the first step of the SSO process, the pre-existing logic that added (and later checked) a nonce was inadvertently rendered opt-in instead of opt-out. This re-exposed a vulnerability in that a specially crafted MITM attack could theoretically take over another user account during the single sign-on process. ### Patches The issue has been fully patched as of v1.17.2. The patch commit can be found at https://github.com/NodeBB/NodeBB/commit/a2400f6baff44cb2996487bcd0cc6e2acc74b3d4 ### Workarounds Site maintainers can cherry-pick https://github.com/NodeBB/NodeBB/commit/a2400f6baff44cb2996487bcd0cc6e2acc74b3d4 into their codebase to patch the exploit. ### References * https://blogs.opera.com/security/2022/03/bug-bounty-adventures-a-nodebb-0-day/ ### For more information If you have any questions or comments about this advisory: * Discuss it on [our community forum](community.nodebb.org/) * Email us at [support@nodebb.org](mailto:support@nodebb.org)
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | nodebb | <= 1.17.1 | 1.17.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Nodebb | Nodebb | before 1.17.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://blogs.opera.com/security/2022/03/bug-bounty-adventures-a-nodebb-0-day/
- https://github.com/NodeBB/NodeBB/commit/a2400f6baff44cb2996487bcd0cc6e2acc74b3d4
- https://github.com/NodeBB/NodeBB/security/advisories/GHSA-xmgg-fx9p-prq6
- https://github.com/advisories/GHSA-xmgg-fx9p-prq6
- https://nvd.nist.gov/vuln/detail/CVE-2022-36076