CVE-2021-21283
CVSS V2 Low 3.5
CVSS V3 Medium 5.4
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.
Overview
- CVE ID
- CVE-2021-21283
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-01-26T21:15:12
- Last Modified Date
- 2021-02-04T14:48:31
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:S/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- SINGLE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 3.5
- Severity
- LOW
- Exploitability Score
- 6.8
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 5.4
- Base Severity
- MEDIUM
- Exploitability Score
- 2.3
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/flarum/sticky/pull/24 | Patch Third Party Advisory |
https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151) | Mitigation Vendor Advisory |
https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h | Third Party Advisory |
https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-21283 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21283 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:24:40 | Added to TrackCVE | |||
2022-12-05 20:57:38 | 2021-01-26T21:15Z | 2021-01-26T21:15:12 | CVE Published Date | updated |
2022-12-05 20:57:38 | 2021-02-04T14:48:31 | CVE Modified Date | updated | |
2022-12-05 20:57:38 | Analyzed | Vulnerability Status | updated |