Traversée de chemin dans flarum/core (CVE-2026-41887)
Résumé
Traversée de chemin dans flarum/core (CVE-2026-41887). Des informations confidentielles peuvent être exposées. Exploitable via POST /api/settings. Atténuation : mise à jour vers 2.0.0-rc.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Flarum's patch for CVE-2023-27577 restricted the @import and data-uri() LESS features in the custom_less setting, but the same restriction was never applied to other settings registered as LESS config variables (for example theme_primary_color and theme_secondary_color, as well as any key registered via Extend\Settings::registerLessConfigVar()).
Those values are interpolated verbatim into the LESS source at compile time, allowing an authenticated administrator to craft a theme-color value that injects an arbitrary @import directive into the compiled forum.css. Because the underlying LESS parser honours @import (inline) '', an attacker can read arbitrary files reachable by the PHP process (local file inclusion) or trigger outbound HTTP(S) requests (server-side request forgery).
Impact
An attacker who has compromised — or legitimately obtained — an administrator account can:
- Read arbitrary local files reachable by the PHP process (e.g.
/etc/passwd,.env, config files containing database credentials, OAuth secrets, API keys). - Trigger outbound HTTP/HTTPS requests from the Flarum host, enabling SSRF against internal services and cloud metadata endpoints such as
http://169.254.169.254/(AWS IMDSv1, GCP, Azure).
The contents of the attacker-controlled import are embedded into the compiled forum.css, which is publicly served — so the attacker can re…
Source: NIST National Vulnerability Database NVD GitHub Advisory
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-2026-41887 a été découverte dans flarum/core.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /api/settings à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 4.9/10.
Action : mettez à jour flarum/core vers 2.0.0-rc.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « flarum/core CVE-2026-41887 » sur le site de l'éditeur.
CVE-2026-41887 (flarum/core) — CWE-22 / CVSS v3 4.9
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : POST /api/settings / custom_less / theme_primary_color / theme_secondary_color
Correctif : 2.0.0-rc.1 — appliquer immédiatement
Contournement : - Ensure administrator accounts are protected with strong, unique passwords and (where supported) two-factor authentication.
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 traversée de chemin (CWE-22) affecte flarum/core. Les attaquants atteignent le code vulnérable via POST /api/settings.
Consultez l'avis de l'éditeur pour les versions affectées de flarum/core. Surface d'attaque : POST /api/settings / custom_less / theme_primary_color / theme_secondary_color.
Gravité : Moyenne (CVSS 4.9/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 2.0.0-rc.1.
Contournement : - Ensure administrator accounts are protected with strong, unique passwords and (where supported) two-factor authentication.
Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers POST /api/settings (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver flarum/core.
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/core' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
flarum/coreを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'POST /api/settings' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /api/settingsへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply temporary workaround mitigate
- Ensure administrator accounts are protected with strong, unique passwords and (where supported) two-factor authentication.パッチが適用されるまでの応急処置として、- Ensure administrator accounts are protected with strong, unique passwords and (where supported) two-factor authentication. を実施。回避策の副作用 (機能低下) を確認した上で。
-
4Apply patch patch
Upgrade flarum/core to 2.0.0-rc.1ステージング環境で 2.0.0-rc.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
5Post-deployment verification verify
Replay attack against POST /api/settings on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com