CVE-2023-46241
"Microsoft Auth Takeover Vulnerability in Discourse"
Description
`discourse-microsoft-auth` is a plugin that enables authentication via Microsoft. On sites with the `discourse-microsoft-auth` plugin enabled, an attack can potentially take control of a victim's Discourse account. Sites that have configured their application's account type to any options other than `Accounts in this organizational directory only (O365 only - Single tenant)` are vulnerable. This vulnerability has been patched in commit c40665f44509724b64938c85def9fb2e79f62ec8 of `discourse-microsoft-auth`. A `microsoft_auth:revoke` rake task has also been added which will deactivate and log out all users that have connected their accounts to Microsoft. User API keys as well as API keys created by those users will also be revoked. The rake task will also remove the connection records to Microsoft for those users. This will allow affected users to re-verify their account emails as well as reconnect their Discourse account to Microsoft for authentication. As a workaround, disable the `discourse-microsoft-auth` plugin by setting the `microsoft_auth_enabled` site setting to `false`. Run the `microsoft_auth:log_out_users` rake task to log out all users with associated Microsoft accounts.
INFO
Published Date :
Feb. 21, 2024, 4:15 p.m.
Last Modified :
Feb. 5, 2025, 10:33 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
2.2
Affected Products
The following products are affected by CVE-2023-46241
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-46241
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-46241
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-46241
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Feb. 05, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:discourse:microsoft_authentication:*:*:*:*:*:discourse:*:* versions up to (excluding) 2024-02-20 Changed Reference Type https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 No Types Assigned https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 Patch Changed Reference Type https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 No Types Assigned https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 Patch Changed Reference Type https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r No Types Assigned https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r Vendor Advisory Changed Reference Type https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r No Types Assigned https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r Vendor Advisory Changed Reference Type https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types No Types Assigned https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types Technical Description Changed Reference Type https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types No Types Assigned https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types Technical Description -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 Added Reference https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r Added Reference https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Feb. 21, 2024
Action Type Old Value New Value Added Description `discourse-microsoft-auth` is a plugin that enables authentication via Microsoft. On sites with the `discourse-microsoft-auth` plugin enabled, an attack can potentially take control of a victim's Discourse account. Sites that have configured their application's account type to any options other than `Accounts in this organizational directory only (O365 only - Single tenant)` are vulnerable. This vulnerability has been patched in commit c40665f44509724b64938c85def9fb2e79f62ec8 of `discourse-microsoft-auth`. A `microsoft_auth:revoke` rake task has also been added which will deactivate and log out all users that have connected their accounts to Microsoft. User API keys as well as API keys created by those users will also be revoked. The rake task will also remove the connection records to Microsoft for those users. This will allow affected users to re-verify their account emails as well as reconnect their Discourse account to Microsoft for authentication. As a workaround, disable the `discourse-microsoft-auth` plugin by setting the `microsoft_auth_enabled` site setting to `false`. Run the `microsoft_auth:log_out_users` rake task to log out all users with associated Microsoft accounts. Added Reference GitHub, Inc. https://github.com/discourse/discourse-microsoft-auth/security/advisories/GHSA-2w32-w539-3m7r [No types assigned] Added Reference GitHub, Inc. https://github.com/discourse/discourse-microsoft-auth/commit/c40665f44509724b64938c85def9fb2e79f62ec8 [No types assigned] Added Reference GitHub, Inc. https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types [No types assigned] Added CWE GitHub, Inc. CWE-863 Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-46241
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-46241
weaknesses.