CVE-2021-21283
Flarum Sticky Cross-Site Scripting Vulnerability
Description
Flarum is an open source discussion platform for websites. The "Flarum Sticky" extension versions 0.1.0-beta.14 and 0.1.0-beta.15 has a cross-site scripting vulnerability. A change in release beta 14 of the Sticky extension caused the plain text content of the first post of a pinned discussion to be injected as HTML on the discussion list. The issue was discovered following an internal audit. Any HTML would be injected through the m.trust() helper. This resulted in an HTML injection where <script> tags would not be executed. However it was possible to run javascript from other HTML attributes, enabling a cross-site scripting (XSS) attack to be performed. Since the exploit only happens with the first post of a pinned discussion, an attacker would need the ability to pin their own discussion, or be able to edit a discussion that was previously pinned. On forums where all pinned posts are authored by your staff, you can be relatively certain the vulnerability has not been exploited. Forums where some user-created discussions were pinned can look at the first post edit date to find whether the vulnerability might have been exploited. Because Flarum doesn't store the post content history, you cannot be certain if a malicious edit was reverted. The fix will be available in version v0.1.0-beta.16 with Flarum beta 16. The fix has already been back-ported to Flarum beta 15 as version v0.1.0-beta.15.1 of the Sticky extension. Forum administrators can disable the Sticky extension until they are able to apply the update. The vulnerability cannot be exploited while the extension is disabled.
INFO
Published Date :
Jan. 26, 2021, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 5:47 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.7
Exploitability Score :
2.3
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-2021-21283
.
URL | Resource |
---|---|
https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29 | |
https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 | Patch Third Party Advisory |
https://github.com/flarum/sticky/pull/24 | Patch Third Party Advisory |
https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h | Third Party Advisory |
https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29 | |
https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 | Patch Third Party Advisory |
https://github.com/flarum/sticky/pull/24 | Patch Third Party Advisory |
https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h | Third Party Advisory |
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-2021-21283
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-21283
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.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29 Added Reference https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 Added Reference https://github.com/flarum/sticky/pull/24 Added Reference https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29 [No types assigned] Removed Reference GitHub, Inc. https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) -
Initial Analysis by [email protected]
Feb. 04, 2021
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) No Types Assigned https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) Mitigation, Vendor Advisory Changed Reference Type https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 No Types Assigned https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 Patch, Third Party Advisory Changed Reference Type https://github.com/flarum/sticky/pull/24 No Types Assigned https://github.com/flarum/sticky/pull/24 Patch, Third Party Advisory Changed Reference Type https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h No Types Assigned https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:* *cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-21283
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-2021-21283
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.53 }} 0.08%
score
0.74397
percentile