Skip to content

Account takeover via SSO plugins (via shared link to /auth/callback with valid code)

High
julianlam published GHSA-xmgg-fx9p-prq6 Sep 1, 2022

Package

npm nodebb (npm)

Affected versions

< 1.17.1

Patched versions

1.17.2

Description

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 a2400f6

Workarounds

Site maintainers can cherry-pick a2400f6 into their codebase to patch the exploit.

References

For more information

If you have any questions or comments about this advisory:

Severity

High

CVE ID

CVE-2022-36076

Weaknesses