CVE-2021-21283
Published on: 01/26/2021 12:00:00 AM UTC
Last Modified on: 03/23/2021 11:28:58 PM UTC
Certain versions of Sticky from Flarum contain the following vulnerability:
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.
- CVE-2021-21283 has been assigned by
[email protected] to track the vulnerability - currently rated as MEDIUM severity.
- Affected Vendor/Software:
flarum - sticky version >=v0.1.0-beta.14 <=v0.1.0-beta.15
CVSS3 Score: 5.4 - MEDIUM
Attack Vector ⓘ |
Attack Complexity |
Privileges Required |
User Interaction |
---|---|---|---|
NETWORK | LOW | LOW | REQUIRED |
Scope | Confidentiality Impact |
Integrity Impact |
Availability Impact |
CHANGED | LOW | LOW | NONE |
CVSS2 Score: 3.5 - LOW
Access Vector ⓘ |
Access Complexity |
Authentication |
---|---|---|
NETWORK | MEDIUM | SINGLE |
Confidentiality Impact |
Integrity Impact |
Availability Impact |
NONE | PARTIAL | NONE |
CVE References
Description | Tags ⓘ | Link |
---|---|---|
XSS in pinned discussion excerpt · Advisory · flarum/sticky · GitHub | Third Party Advisory github.com text/html |
![]() |
Fix evaluation of post content by m.trust() by SychO9 · Pull Request #24 · flarum/sticky · GitHub | Patch Third Party Advisory github.com text/html |
![]() |
Security update to Flarum Sticky 0.1.0-beta.15.1 - Flarum Community | Mitigation Vendor Advisory discuss.flarum.org text/html |
![]() |
Fix evaluation of post content by m.trust() (#24) · flarum/[email protected] · GitHub | Patch Third Party Advisory github.com text/html |
![]() |
Known Affected Configurations (CPE V2.3)
Type | Vendor | Product | Version | Update | Edition | Language |
---|---|---|---|---|---|---|
Application | Flarum | Sticky | 0.1.0 | beta14 | All | All |
Application | Flarum | Sticky | 0.1.0 | beta15 | All | All |
Application | Flarum | Sticky | 0.1.0 | beta14 | All | All |
Application | Flarum | Sticky | 0.1.0 | beta15 | All | All |
- cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:*:
- cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:*:
- cpe:2.3:a:flarum:sticky:0.1.0:beta14:*:*:*:*:*:*:
- cpe:2.3:a:flarum:sticky:0.1.0:beta15:*:*:*:*:*:*: