XSS (Cross-Site Scripting) dans flarum/sticky (CVE-2021-21283)
Résumé
XSS dans flarum/sticky (CVE-2021-21283). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers 0.1.0-beta.15.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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 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…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2021-21283 a été découverte dans flarum/sticky.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour flarum/sticky vers 0.1.0-beta.15.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « flarum/sticky CVE-2021-21283 » sur le site de l'éditeur.
CVE-2021-21283 (flarum/sticky) — CWE-79
Vecteur d'attaque : distant (réseau)
Correctif : 0.1.0-beta.15.1 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une XSS (CWE-79) affecte flarum/sticky.
Consultez l'avis de l'éditeur pour les versions affectées de flarum/sticky.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.1.0-beta.15.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'flarum/sticky' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
flarum/stickyを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade flarum/sticky to 0.1.0-beta.15.1ステージング環境で 0.1.0-beta.15.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web discuss.flarum.org
- web discuss.flarum.org