CVE-2021-21283

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:*
cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:*

History

07 Nov 2023, 03:29

Type Values Removed Values Added
References
  • {'url': 'https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151)', 'name': 'https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151)', 'tags': ['Mitigation', 'Vendor Advisory'], 'refsource': 'MISC'}
  • () https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29 -

04 Feb 2021, 14:48

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : 3.5
v3 : 5.4
CPE cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:*
cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:*
References (MISC) https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 - (MISC) https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 - Patch, Third Party Advisory
References (MISC) https://github.com/flarum/sticky/pull/24 - (MISC) https://github.com/flarum/sticky/pull/24 - Patch, Third Party Advisory
References (MISC) https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) - (MISC) https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) - Mitigation, Vendor Advisory
References (CONFIRM) https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h - (CONFIRM) https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h - Third Party Advisory

26 Jan 2021, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-01-26 21:15

Updated : 2023-12-10 13:41


NVD link : CVE-2021-21283

Mitre link : CVE-2021-21283

CVE.ORG link : CVE-2021-21283


JSON object : View

Products Affected

flarum

  • sticky
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')